mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-06-20 18:39:15 +08:00
28 lines
893 B
YAML
28 lines
893 B
YAML
name: Vue3-Vite-Vant-TS-H5
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-and-deploy:
|
|
concurrency: ci-${{ github.ref }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout 🛎️ # 将代码拉取到虚拟机
|
|
uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install and Build 🔧 # 安装依赖、打包,如果提前已打包好无需这一步
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
|
|
- name: Deploy 🚀 # 部署
|
|
uses: JamesIves/github-pages-deploy-action@v4.3.3
|
|
with:
|
|
ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }}
|
|
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 目录下 |