Skip to content

Commit

Permalink
Merge pull request #54 from Openscapes/update-deploy-workflow
Browse files Browse the repository at this point in the history
Update deploy workflow
  • Loading branch information
ateucher authored Nov 14, 2024
2 parents 4b41627 + 0a26b27 commit 8ba8a44
Show file tree
Hide file tree
Showing 76 changed files with 43 additions and 18,249 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
# workflow_dispatch allows deploy preview by pushing button on GitHub
workflow_dispatch:
pull_request:
branches: [main]

name: Deploy Preview

jobs:
build-deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render
uses: quarto-dev/quarto-actions/render@v2
with:
to: html

- name: Deploy Preview to Netlify as preview
id: netlify-deploy
uses: nwtgck/actions-netlify@v3
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: e887b4d9-4d53-471b-8ac0-66438da0efd1
with:
publish-dir: './_site'
production-deploy: false
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message:
'Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
alias: deploy-preview-${{ github.event.number }}
# these all default to 'true'
enable-pull-request-comment: true
enable-commit-comment: false
enable-commit-status: true
overwrites-pull-request-comment: false
timeout-minutes: 1
2 changes: 1 addition & 1 deletion .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
Expand Down
1 change: 0 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
project:
type: website
output-dir: docs

website:
title: "Pathways to Open Science"
Expand Down
746 changes: 0 additions & 746 deletions docs/2023.html

This file was deleted.

469 changes: 0 additions & 469 deletions docs/2024.html

This file was deleted.

Loading

0 comments on commit 8ba8a44

Please sign in to comment.