ars-tools/.gitea/workflows/deploy.yaml

27 lines
573 B
YAML
Raw Normal View History

2023-12-15 17:07:49 +08:00
name: ARS Tools Deploy
run-name: ✨${{ gitea.actor }} is deploy ars-tools pages
on:
push:
branches: [ "main" ]
# 允许手动触发
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: node-21
steps:
2023-12-15 17:44:20 +08:00
- name: 获取仓库
uses: actions/checkout@v4
with:
ref: 'main'
- name: npm安装依赖
2023-12-15 17:07:49 +08:00
run: npm install
- name: 🔧npm构建
run: vite build
- name: 💪部署
uses: JamesIves/github-pages-deploy-action@v4.5.0
2023-12-15 17:07:49 +08:00
with:
folder: dist
branch: gh-pages