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

31 lines
820 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 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 20:17:36 +08:00
run: npm run build
2023-12-15 17:07:49 +08:00
- name: 💪部署
2023-12-15 20:22:14 +08:00
uses: http://shenjack.top:5100/adk23333/github-pages-deploy-action@v4.5.0
2023-12-15 17:07:49 +08:00
with:
folder: dist
2023-12-15 22:25:34 +08:00
branch: cf-pages
git-config-email: $email
2023-12-15 20:56:43 +08:00
ssh-key: ${{secrets.DEPLOY_KEY}}