Merge pull request #1188 from Metro-Records/hcg/email #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish documentation to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
name: Build and publish documentation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- uses: tj-actions/changed-files@v45 | |
id: docs-changed | |
with: | |
files: | | |
docs/* | |
- name: Set up Quarto | |
if: steps.docs-changed.outputs.any_changed == 'true' | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Render and Publish | |
if: steps.docs-changed.outputs.any_changed == 'true' | |
uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
path: docs | |
target: gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |