Skip to content

Commit 05d0478

Browse files
Update publish.yml (#52)
1 parent b39eff5 commit 05d0478

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,34 @@ on:
66

77
jobs:
88
deploy:
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
environment:
14+
name: github-pages
915
name: Deploy to GitHub Pages
1016
runs-on: ubuntu-latest
1117
steps:
12-
- uses: actions/checkout@v5
13-
14-
- uses: actions/setup-node@v5
18+
- uses: actions/checkout@v6
19+
20+
- uses: actions/setup-node@v4
1521
with:
1622
node-version: 24.x
1723
cache: yarn
1824

1925
- name: Build website
2026
run: |
21-
export NODE_OPTIONS=--openssl-legacy-provider
2227
yarn install --frozen-lockfile
2328
yarn build
2429
25-
- name: Deploy to GitHub Pages
26-
uses: peaceiris/actions-gh-pages@v3
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v5
32+
33+
- name: Upload Pages artifacts
34+
uses: actions/upload-pages-artifact@v4
2735
with:
28-
github_token: ${{ secrets.COMMIT_TOKEN }}
29-
publish_dir: ./build
30-
user_name: github-actions[bot]
31-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
36+
path: './build'
37+
38+
- name: Deploy to GitHub Pages
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)