Skip to content

Commit

Permalink
ci: Fix documention workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MillironX committed Dec 22, 2023
1 parent 7c2f787 commit 0490ccd
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,36 @@ jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
statuses: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: "1"
arch: x64
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using HapLink
DocMeta.setdocmeta!(HapLink, :DocTestSetup, :(using HapLink); recursive=true)
doctest(HapLink)'
- run: julia --project=docs docs/make.jl
- uses: julia-actions/cache@v1
- name: Configure doc environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
JULIA_PKG_SERVER: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
JULIA_PKG_SERVER: ""
- name: Run doctests
shell: julia --project=docs --color=yes {0}
run: |
using Documenter: DocMeta, doctest
using HapLink
DocMeta.setdocmeta!(HapLink, :DocTestSetup, :(using HapLink); recursive=true)
doctest(HapLink)
- uses: actions/upload-artifact@v3
if: ${{ env.ACT }}
with:
Expand Down

0 comments on commit 0490ccd

Please sign in to comment.