docs #6
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: Documenter | |
on: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
- uses: julia-actions/cache@v1 | |
with: | |
cache-registries: "true" | |
- name: Install HTTR package # use this since HTTR is not in the registry | |
run: julia -e 'using Pkg; Pkg.add(url="https://github.com/TidierOrg/HTTR.jl")' | |
- name: Install documentation dependencies | |
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate()' | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | |
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 | |
JULIA_DEBUG: "Documenter" | |
DATADEPS_ALWAYS_ACCEPT: true | |
run: | | |
julia --code-coverage=user --project=docs/ --color=yes docs/genfiles.jl | |
julia --code-coverage=user --project=docs/ --color=yes docs/make.jl |