-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.22 KB
/
blank.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 📦 Build and Deploy Resume CI 🚀
on:
push:
branches:
- main
workflow_dispatch: # 允许手动运行
# 允许仓库写权限
permissions:
contents: write
jobs:
generator-resume:
name: Generating pages
runs-on: ubuntu-latest
steps:
- name: ♻️ Checkout Repository
uses: actions/checkout@v4
- name: 🎉 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: 📝 Install dependencies
run: npm install
- name: 📦 Build pages
run: npm run build
- name: 🚀 Deploy to GitHub Pages
if: success() # 仅在构建成功时部署
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GIT_CONFIG_NAME: maki-bot
GIT_CONFIG_EMAIL: [email protected]
REPOSITORY_NAME: Alicehhhmm/resume
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # 部署到的分支,通常是 gh-pages
FOLDER: dist # 构建输出的目录(一般输出:dist,next.js除外)
CLEAN: true # 自动清理删除的文件
COMMIT_MESSAGE: 🎉 update from resume