Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat(github): update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WOSHIZHAZHA120 committed Feb 26, 2024
1 parent 3c58d29 commit c8ec4df
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/deploy.yml
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

0 comments on commit c8ec4df

Please sign in to comment.