Skip to content

Commit 2622d36

Browse files
authored
fix publish.yml
1 parent dfe50df commit 2622d36

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
permissions:
2525
actions: write # needed to allow julia-actions/cache to delete old caches that it has created
2626
contents: write # needed for Quarto render
27+
pages: write # needed for deployment to GitHub Pages
28+
id-token: write # needed for deployment to GitHub Pages
29+
statuses: write # needed for deployment to GitHub Pages
2730
if: ${{ !github.event.pull_request.draft }}
2831
steps:
2932
- uses: actions/checkout@v4
@@ -44,10 +47,11 @@ jobs:
4447
uses: quarto-dev/quarto-actions/render@v2
4548
with:
4649
to: html
47-
- uses: quarto-dev/quarto-actions/publish@v2
50+
- name: Quarto Preview
4851
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
uses: quarto-dev/quarto-actions/publish@v2
5153
with:
5254
render: 'false' # rendered in the previous step already
5355
target: gh-pages
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)