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

29 lines
729 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 19:43:39 +08:00
- name: 🎄获取仓库
2023-12-15 19:58:31 +08:00
uses: https://gitee.com/actions-mirror/checkout.git
2023-12-15 17:44:20 +08:00
with:
ref: 'main'
2023-12-15 19:43:39 +08:00
- name: 🖋配置npm源
run: npm config set registry https://registry.npmmirror.com
- name: npm安装依赖
2023-12-15 17:07:49 +08:00
run: npm install
2023-12-15 19:43:39 +08:00
- name: 🌺npm构建
2023-12-15 17:07:49 +08:00
run: vite build
- name: 💪部署
2023-12-15 19:58:31 +08:00
uses: https://gitee.com/akabc23333/github-pages-deploy-action@4.5.0
2023-12-15 17:07:49 +08:00
with:
folder: dist
branch: gh-pages