Skip to content

Commit 0fcb787

Browse files
authored
fix: 🐛 remove leftover workflow tags from conversion (#338)
1 parent 3b396d4 commit 0fcb787

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

template/.github/workflows/build-website.yml.jinja

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: read-all
1111
jobs:
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 %}

0 commit comments

Comments
 (0)