Skip to content

docs: github-actions md #16

docs: github-actions md

docs: github-actions md #16

Workflow file for this run

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