Skip to content

Commit

Permalink
add workflow for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostBuitink committed Nov 13, 2024
1 parent 300a864 commit 1766872
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Quarto documentation
on:
push:
branches: [master]
tags: [v*]
pull_request:

concurrency:
Expand Down Expand Up @@ -57,5 +58,15 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Quarto Project as version
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1766872

Please sign in to comment.