Skip to content

Commit 7de1e17

Browse files
authored
Merge pull request #4 from amakarudze/master
Fix build workflow to deploy to GitHub Pages
2 parents 1b46be1 + f0ddfb9 commit 7de1e17

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy Astro site to GitHub Pages
2+
23
on:
34
push:
45
branches: [ main ]
6+
57
jobs:
68
build:
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@v4
1012
- uses: actions/setup-node@v4
1113
with:
12-
node-version: 18
14+
node-version: 22
1315
- run: npm ci
1416
- run: npm run build
15-
- uses: actions/upload-pages-artifact@v4
17+
- uses: actions/upload-pages-artifact@v3
1618
with:
1719
path: ./dist
20+
1821
deploy:
19-
runs-on: ubuntu-latest
2022
needs: build
23+
runs-on: ubuntu-latest
2124
permissions:
2225
pages: write
2326
id-token: write
2427
steps:
25-
- uses: actions/deploy-pages@v4
28+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)