refactor(渲染): 重构蒙版渲染任务以支持动态样式配置 #288
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vue Auto Deploy | |
on: | |
push: | |
branches: [ "main", "master" ] # 监听主分支的代码推送 | |
permissions: | |
contents: write # 允许写入gh-pages分支 | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 # 检出代码 | |
- name: Install Dependencies | |
run: npm install --legacy-peer-deps | |
- name: Build Project | |
run: npm run build # 执行打包命令 | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # 部署到gh-pages分支 | |
folder: dist # 指定打包目录 | |
github_token: ${{ secrets.GITHUB_TOKEN }} |