Skip to content

Commit faaa3ca

Browse files
committed
Reworked how the docs are built and deployed
1 parent fac6e1d commit faaa3ca

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,20 @@ jobs:
5959
name: Documentation
6060
runs-on: ubuntu-latest
6161
steps:
62-
- uses: actions/checkout@v3
63-
- uses: julia-actions/setup-julia@v1
62+
- uses: actions/checkout@v5
63+
- uses: julia-actions/setup-julia@v2
6464
with:
6565
version: '1'
66-
- run: |
67-
julia --project=docs -e '
68-
using Pkg
69-
Pkg.add(name="OpenSSL_jll", version="3.0")
70-
Pkg.add("Documenter")
71-
Pkg.develop(PackageSpec(path=pwd()))
72-
Pkg.instantiate()'
73-
- run: julia --project=docs docs/make.jl
66+
- uses: julia-actions/cache@v2
67+
- name: Configure doc environment
68+
shell: julia --project=docs --color=yes {0}
69+
run: |
70+
using Pkg
71+
Pkg.develop(PackageSpec(path=pwd()))
72+
Pkg.instantiate()
73+
Pkg.add(name="OpenSSL_jll", version="3.0")
74+
- uses: julia-actions/julia-buildpkg@v1
75+
- uses: julia-actions/julia-docdeploy@v1
7476
env:
7577
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7678
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)