chore: 🔨 更换 pwa 图标 #48
Workflow file for this run
This file contains 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: Deploy GitHub Pages | |
# 触发条件:在 push 到 master 分支后 | |
on: | |
push: | |
branches: | |
- master | |
# 任务 | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest # 部署运行环境搭建 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@main | |
with: | |
persist-credentials: false | |
fetch-depth: 0 # github代码拉取深度 | |
- name: Setup Node 🎬 | |
uses: actions/setup-node@main | |
with: | |
node-version: 'lts/*' | |
- name: Build 🔧 | |
run: | | |
npm install | |
npm run build | |
ls -lrth | |
- name: Deploy 🚀 # 把打包后的dist文件部署到master分支 | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.TOKEN_JV }} | |
publish_dir: dist | |
user_name: github-actions[bot] | |
user_email: github-actions[bot]@users.noreply.github.com |