Skip to content

Commit a249112

Browse files
committed
Update publishing workflow
1 parent 1f3414b commit a249112

File tree

1 file changed

+13
-29
lines changed

1 file changed

+13
-29
lines changed
Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,25 @@
11
on:
2+
workflow_dispatch:
23
push:
34
branches: main
4-
pull_request:
5-
branches: main
6-
# to be able to trigger a manual build
7-
workflow_dispatch:
85

9-
name: Render and deploy Book
6+
name: Quarto Publish
107

118
jobs:
129
build-deploy:
1310
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1413
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Install Quarto
18-
uses: quarto-dev/quarto-actions/install-quarto@v1
19-
with:
20-
# To install LaTeX to build PDF book
21-
tinytex: true
22-
# uncomment below and fill to pin a version
23-
# version: 0.9.105
24-
25-
# Install any computing dependency you may need, usually either python and Jupyter or R
26-
# More specific examples will be shared on quarto-dev/quarto-actions project
14+
- name: Check out repository
15+
uses: actions/checkout@v4
2716

28-
- name: Render book to all format
29-
# Add any command line argument needed
30-
run: |
31-
quarto render
17+
- name: Set up Quarto
18+
uses: quarto-dev/quarto-actions/setup@v2
3219

33-
- name: Deploy 🚀
34-
# only deploy when push to main
35-
if: github.event_name != 'pull_request'
36-
uses: JamesIves/github-pages-deploy-action@v4
20+
- name: Render and Publish
21+
uses: quarto-dev/quarto-actions/publish@v2
3722
with:
38-
# The branch the action should deploy to.
39-
branch: gh-pages
40-
# The folder the action should deploy. Adapt if you changed in Quarto config
41-
folder: docs
23+
target: gh-pages
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)