Skip to content

Commit a68ce1a

Browse files
authored
fix GitHub Pages publication (#33)
Co-authored-by: Geevarghese George <4496097+thatgeeman@users.noreply.github.com>
1 parent 87a5430 commit a68ce1a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ name: Deploy to GitHub Pages
33
permissions:
44
contents: write
55
pages: write
6+
id-token: write
67

78
on:
89
push:
910
branches: [ "main", "master" ]
1011
workflow_dispatch:
1112
jobs:
1213
deploy:
14+
environment:
15+
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: thatgeeman/workflows/quarto-ghp@master
@@ -20,3 +24,12 @@ jobs:
2024
test -f _docs/index.html
2125
grep -q 'id="quarto-sidebar"' _docs/index.html
2226
grep -q 'href="./basics.html"' _docs/index.html
27+
- name: Configure GitHub Pages
28+
uses: actions/configure-pages@v5
29+
- name: Upload generated site
30+
uses: actions/upload-pages-artifact@v4
31+
with:
32+
path: _docs
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)