This commit is contained in:
talktao 2022-08-25 20:22:14 +08:00
parent e78641f00e
commit a9da255bc3
2 changed files with 10 additions and 15 deletions

View File

@ -5,21 +5,15 @@ on:
- main
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️ # 将代码拉取到虚拟机
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@master
- name: Install and Build 🔧 # 安装依赖、打包,如果提前已打包好无需这一步
run: |
npm install
npm run build
- name: Deploy 🚀 # 部署
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: dist
# REPOSITORY_NAME: talktao/talktao.github.io # 这是我的 github page 地址
# TARGET_FOLDER: Vue3-Vite-Vant-TS-H5 # 打包的文件将放到静态服务器 Vue3-Vite-Vant-TS-H5 目录下
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }}
BRANCH: gh-pages
FOLDER: build
BUILD_SCRIPT: npm install && npm run build

View File

@ -2,6 +2,7 @@
"name": "vue-vant-ts",
"private": true,
"version": "0.0.0",
"homepage": "https://talktao.github.io",
"scripts": {
"dev": "vite",
"build": "vite build",