Skip to content

Commit d8a145e

Browse files
Merge pull request #68 from ClojureCivitas/gh-action
switching from gh-pages branch to action
2 parents cd88554 + 5c7663f commit d8a145e

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/render-and-publish.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66
name: Render and Publish
77

88
permissions:
9-
contents: write
10-
pages: write
9+
contents: read
1110

1211
jobs:
13-
build-deploy:
12+
build:
1413
runs-on: ubuntu-latest
1514

1615
steps:
@@ -54,10 +53,26 @@ jobs:
5453
with:
5554
tinytex: true
5655

57-
- name: Render and Publish
58-
uses: quarto-dev/quarto-actions/publish@v2
56+
- name: Render Quarto
57+
uses: quarto-dev/quarto-actions/render@v2
5958
with:
60-
target: gh-pages
6159
path: site
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: Upload artifact
62+
uses: actions/upload-pages-artifact@v3
63+
with:
64+
path: site/_site
65+
66+
deploy:
67+
needs: build
68+
permissions:
69+
pages: write
70+
id-token: write
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
runs-on: ubuntu-latest
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)