Skip to content

Commit 7115c2b

Browse files
committed
build: standard gh pages
1 parent 5ceacf9 commit 7115c2b

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
timeout-minutes: 30
1414
permissions:
1515
contents: write
16-
checks: read
17-
statuses: read
16+
pages: write
17+
id-token: write
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Wait for Garnix flake.nix evaluation
@@ -41,12 +41,25 @@ jobs:
4141
- uses: DeterminateSystems/magic-nix-cache-action@v13
4242
- name: Build Web
4343
run: nix build .#web -o public-dist
44-
- name: Deploy to GitHub Pages
45-
uses: peaceiris/actions-gh-pages@v4
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
4646
with:
47-
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
publish_dir: ./public-dist
49-
cname: logout.guilhemfau.re
47+
path: ./public-dist
48+
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: deploy-pwa
55+
if: github.ref == 'refs/heads/main'
56+
permissions:
57+
pages: write
58+
id-token: write
59+
steps:
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4
5063

5164
release-android:
5265
name: Release Android

0 commit comments

Comments
 (0)