This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github): update deploy workflow
- Loading branch information
1 parent
3c58d29
commit c8ec4df
Showing
1 changed file
with
19 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
name: 部署 | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
push: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
deploy: | ||
environment: | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
|
||
- run: npm install --global pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run generate | ||
- run: npm install --global pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run generate | ||
|
||
- uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: '.output/public' | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: '.output/public' | ||
|
||
- id: deployment | ||
uses: actions/deploy-pages@v2 | ||
- id: deployment | ||
uses: actions/deploy-pages@v4 |