Skip to content

Commit

Permalink
fix: Fix Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowRZ committed Aug 8, 2024
1 parent 9210c55 commit 8a44c5d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: '20'
cache: 'pnpm'
- name: Install pnpm
uses: pnpm/action-setup@v4
# Pick your own package manager and build script
- run: pnpm install --no-optional=false
- run: pnpm run build --preset=github_pages
- name: Install dependencies
run: pnpm install --no-optional=false
- name: Build
run: pnpm run build --preset=github_pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand All @@ -32,8 +33,8 @@ jobs:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github_pages environment
environment:
name: github_pages
Expand Down

0 comments on commit 8a44c5d

Please sign in to comment.