Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostBuitink committed Nov 13, 2024
1 parent d6a442a commit 300a864
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/Documenter.yml

This file was deleted.

26 changes: 19 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Docs
name: Quarto documentation
on:
push:
branches: [v1, v1_quarto_docs]
branches: [master]
pull_request:
branches: [v1]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
publish:
name: Docs Julia
name: Build and publish docs
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -38,12 +40,22 @@ jobs:
- name: Render Quarto Project
run: pixi run quarto-render

- name: Publish Quarto Project
# if: github.ref == 'refs/heads/v1'
- name: Publish Quarto Project as preview
if: github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: previews/PR${{ github.event.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Quarto Project as dev
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: quarto
destination_dir: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 300a864

Please sign in to comment.