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 20:05:08 +08:00
|
|
|
|
uses: http://shenjack.top:5100/gitea-server/checkout@v4
|
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 20:11:22 +08:00
|
|
|
|
uses: https://gitee.com/akabc23333/github-pages-deploy-action@v4.5.0
|
2023-12-15 17:07:49 +08:00
|
|
|
|
with:
|
|
|
|
|
folder: dist
|
|
|
|
|
branch: gh-pages
|