-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5856997
commit 9980efd
Showing
2 changed files
with
57 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# https://documenter.juliadocs.org/stable/man/hosting/#GitHub-Actions | ||
name: Documentation | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'LICENSE' | ||
- 'README.md' | ||
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- 'LICENSE' | ||
- 'README.md' | ||
workflow_dispatch: | ||
concurrency: | ||
# cancel intermediate builds | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
env: | ||
JULIA_PKG_SERVER: '' | ||
steps: | ||
- name: Set up Julia | ||
uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1.9.3' | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Cache artifacts | ||
uses: julia-actions/cache@v2 | ||
- name: Install dependencies | ||
run: | | ||
julia --project=docs/ -e 'using Pkg; | ||
Pkg.develop(PackageSpec(path=pwd())); | ||
Pkg.instantiate()' | ||
- name: Build and deploy | ||
run: julia --project=docs/ docs/make.jl | ||
env: | ||
GKSwstype: nul # fix for Plots with GR backend | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # authentication with SSH deploy key |
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