Skip to content

fix workflow

fix workflow #21

Workflow file for this run

name: docs
on:
push:
branches:
- 'main'
- 'release-'
tags: '*'
release:
types: [published]
pull_request:
types: [labeled]
jobs:
build:
if: ${{ github.event.label.name == 'documentation' || github.event_name != 'pull_request' }}
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
- 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 --color=yes --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}}