Skip to content

Commit

Permalink
fix CI documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZhao44 committed Oct 23, 2023
1 parent ec0d611 commit d87600c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,21 @@ jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
contents: write
statuses: write
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: doctest
using ZXCalculus
doctest(ZXCalculus)'
- run: julia --project=docs docs/make.jl
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using Liang
DocMeta.setdocmeta!(Liang, :DocTestSetup, :(using Liang); recursive=true)
doctest(Liang)'

0 comments on commit d87600c

Please sign in to comment.