Skip to content

Commit 525305d

Browse files
authored
Update release.yaml
1 parent 6b4d611 commit 525305d

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/release.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@ on:
33
push:
44
branches:
55
- 'main'
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
612
jobs:
713
build-and-deploy:
814
runs-on: ubuntu-latest
9-
name: Build and deploy
1015
steps:
1116
- uses: actions/checkout@v4
17+
1218
- name: Setup node
1319
uses: actions/setup-node@v4
1420
with:
1521
node-version: 24.x
1622
cache: 'npm'
1723

18-
- name: Configure Git
19-
run: |
20-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
21-
git config --global user.name "github-actions[bot]"
22-
2324
- name: Install dependencies
2425
run: npm ci
2526

@@ -28,5 +29,13 @@ jobs:
2829
env:
2930
CI: false
3031

32+
- name: Setup Pages
33+
uses: actions/configure-pages@v4
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: './build'
39+
3140
- name: Deploy to GitHub Pages
32-
run: npx gh-pages -d build
41+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)