Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 30 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,31 @@ concurrency:
cancel-in-progress: false

jobs:
run_tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- uses: julia-actions/setup-julia@v3
with:
version: "1"

- uses: julia-actions/cache@v3

- name: Instantiate package environment
run: julia --project=. -e 'using Pkg; Pkg.instantiate()'

- name: Run tests
run: julia --project=. -e 'using Pkg; Pkg.test()'

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- uses: julia-actions/setup-julia@latest
- uses: julia-actions/setup-julia@v3
with:
version: "1"

Expand All @@ -35,23 +54,30 @@ jobs:
run: julia --project=docs docs/make.jl

- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6

- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@v5
with:
path: docs/build

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build

needs:
- run_tests
- build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- id: deployment
uses: actions/deploy-pages@v5
Loading