2022-08-25 19:25:47 +08:00

25 lines
795 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
- 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 目录下