Skip to content

Commit b966da5

Browse files
committed
Try this
1 parent b8a6617 commit b966da5

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/publish.yml

+21-8
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ on:
66
name: Publish
77

88
jobs:
9-
build-deploy:
9+
build:
1010
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
11+
1312
steps:
1413
- name: Check out repository
1514
uses: actions/checkout@v4
@@ -25,9 +24,23 @@ jobs:
2524
with:
2625
version: pre-release
2726

28-
- name: Render and publish
29-
uses: quarto-dev/quarto-actions/publish@v2
27+
- name: Render
28+
uses: quarto-dev/quarto-actions/render@v2
29+
30+
- name: Upload artifact
31+
id: deployment
32+
uses: actions/upload-pages-artifact@v3
3033
with:
31-
target: gh-pages
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
path: _book
35+
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
needs: build
42+
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)