File tree Expand file tree Collapse file tree
template/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions: read-all
1111jobs:
1212 build-website:
1313 runs-on: ubuntu-latest
14- {% if hosting_provider == 'gh-pages' -%}
14+ {% - if hosting_provider == 'gh-pages' -%}
1515 with:
1616 hosting-provider: gh-pages
1717 permissions:
@@ -61,19 +61,18 @@ jobs:
6161
6262 {% if hosting_provider == 'netlify' -%}
6363 - name: Publish to Netlify (and render)
64- if: {{ "${{ inputs.hosting-provider == 'netlify' }}" }}
6564 uses: quarto-dev/quarto-actions/publish@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
6665 with:
6766 target: netlify
68- NETLIFY_AUTH_TOKEN: {{ '${{ secrets.netlify-token }}' }}
67+ # TODO: Make sure to set the Netlify site ID in the repository secrets.
68+ NETLIFY_AUTH_TOKEN: {{ '${{ secrets.NETLIFY_AUTH_TOKEN }}' }}
6969
7070 {% - elif hosting_provider == 'gh-pages' -%}
7171 # NOTE: If Publishing to GitHub Pages, set the permissions correctly (see above).
7272 - name: Publish to GitHub Pages (and render)
73- if: {{ "${{ inputs.hosting-provider == 'gh-pages' }}" }}
7473 uses: quarto-dev/quarto-actions/publish@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
7574 with:
7675 target: gh-pages
7776 env:
78- GITHUB_TOKEN: {{ '${{ secrets.github-token }}' }}
77+ GITHUB_TOKEN: {{ '${{ secrets.GITHUB_TOKEN }}' }}
7978 {% - endif %}
You can’t perform that action at this time.
0 commit comments