fix(lostFound):合并 suit 时仓库不是最新的代码,导致失物招领代码覆盖成了更前面的版本,改正成最新的失物招领 #14
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 | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- name: Generate .env file | |
run: | | |
echo "VITE_BASE=${{ vars.VITE_BASE }}" > .env | |
- run: pnpm i | |
- name: Build | |
run: pnpm build | |
- uses: actions/configure-pages@v2 | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
path: dist | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v1 |