mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
fix: ci
This commit is contained in:
parent
e78641f00e
commit
a9da255bc3
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -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
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user