Skip to content

chore: 更新依赖 #87

chore: 更新依赖

chore: 更新依赖 #87

Workflow file for this run

name: deploy
on:
push:
branches: ['main'] # master 分支有 push 时触发
paths-ignore: # 下列文件的变更不触发部署,可以自行添加
- README.md
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 下载源码
# 这一步就是检出你的仓库并下载里面的代码到runner中,actions/checkout@v2是官方自己造的轮子,直接拿来用就行
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- run: yarn install --frozen-lockfile
- name: Build
run: yarn build
# 部署到 GitHub pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3 # 使用部署到 GitHub pages 的 action
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # secret 名
commit_message: 自动部署 # 部署时的 git 提交信息,自由填写
publish_dir: ./dist # 部署打包后的 dist 目录