Skip to content

Commit

Permalink
Only render site to Netlify for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
tverbeiren committed Feb 20, 2024
1 parent 6c746cb commit 14dcdbf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release_to_netlify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches-ignore: [ main ]
# push:
# branches-ignore: [ main ]
pull_request:
types:
- opened
Expand All @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Assemble alpha/toolbox.json
- name: Assemble alpha/toolbox.json
uses: mikefarah/yq@master
with:
cmd: yq -M -o=json src/toolbox.yaml > toolbox/toolbox.json
Expand All @@ -44,17 +44,17 @@ jobs:
uses: quarto-dev/quarto-actions/render@v2
with:
to: html

- name: Deploy preview 🚀
id: deploy_preview
if: github.event_name == 'pull_request'
uses: data-intuitive/netlify-deploy-site@v1
with:
auth: ${{ secrets.NETLIFY_AUTH_TOKEN }}
site: ${{ env.NETLIFY_SITE_ID }}
dir: '_site'
dir: "_site"
alias: "${{ env.BRANCH_NAME }}"
message: 'Deploy production ${{ github.ref }}'
message: "Deploy production ${{ github.ref }}"

- uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 14dcdbf

Please sign in to comment.