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 - main
jobs: jobs:
build-and-deploy: build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ # 将代码拉取到虚拟机 - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@master
- name: Install and Build 🔧 # 安装依赖、打包,如果提前已打包好无需这一步 - name: Build and Deploy
run: | uses: JamesIves/github-pages-deploy-action@master
npm install env:
npm run build ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }}
BRANCH: gh-pages
- name: Deploy 🚀 # 部署 FOLDER: build
uses: JamesIves/github-pages-deploy-action@v4.3.3 BUILD_SCRIPT: npm install && npm run build
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 目录下

View File

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