Skip to content

Commit 7f3976d

Browse files
authored
Merge pull request #87 from hamelsmu/patch-1
2 parents 7cc5f3e + 8ba63cd commit 7f3976d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

examples/quarto-publish-example.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44

55
name: Render and Publish
66

7+
# you need these permissions to publish to GitHub pages
8+
# permissions:
9+
# contents: write
10+
# pages: write
11+
712
jobs:
813
build-deploy:
914
runs-on: ubuntu-latest
@@ -19,7 +24,19 @@ jobs:
1924
# uncomment below and fill to pin a version
2025
# version: SPECIFIC-QUARTO-VERSION-HERE
2126

22-
# add software dependencies here
27+
# add software dependencies here, for example R or Python, and any libraries
28+
29+
# From https://github.com/actions/setup-python
30+
# - name: Setup Python
31+
# uses: actions/setup-python@v3
32+
33+
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
34+
# - name: Setup R
35+
# uses: r-lib/actions/setup-r@v2
36+
37+
# From https://github.com/julia-actions/setup-julia
38+
# - name: Setup Julia
39+
# uses: julia-actions/setup-julia@v1
2340

2441
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
2542
# the appropriate block below
@@ -37,7 +54,8 @@ jobs:
3754
# CONNECT_SERVER: enter-the-server-url-here
3855
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
3956

40-
# - name: Publish to GitHub Pages (and render)
57+
# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
58+
# - name: Publish to GitHub Pages (and render)
4159
# uses: quarto-dev/quarto-actions/publish@v2
4260
# with:
4361
# target: gh-pages

0 commit comments

Comments
 (0)