Skip to content

Commit 0b46424

Browse files
ci: fix doc deploy (#130)
* ci: fix doc deploy and open doctest https://github.com/JuliaCI/PkgTemplates.jl/blob/c3545770ce44b053201b93871feb39bd06566709/templates/github/workflows/CI.yml * Apply suggestions from code review (devmotion) * Update .github/workflows/Documenter.yml Co-authored-by: David Widmann <[email protected]> --------- Co-authored-by: David Widmann <[email protected]>
1 parent 2ae97a7 commit 0b46424

File tree

1 file changed

+35
-14
lines changed

1 file changed

+35
-14
lines changed

.github/workflows/Documenter.yml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
11
name: Documenter
22
on:
3-
push:
4-
branches: [master]
5-
tags: [v*]
6-
pull_request:
3+
push:
4+
branches: [master]
5+
tags: [v*]
6+
pull_request:
7+
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
713

814
jobs:
9-
Documenter:
10-
name: Documentation
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: julia-actions/julia-buildpkg@v1
15-
- uses: julia-actions/julia-docdeploy@v1
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
15+
docs:
16+
name: Documentation
17+
runs-on: ubuntu-latest
18+
permissions:
19+
# needed to allow julia-actions/cache to proactively delete old caches that it has created
20+
actions: write
21+
contents: write
22+
# needed to allow the workflow to create a status with a link to the docs preview
23+
statuses: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: '1'
29+
- uses: julia-actions/cache@v1
30+
- name: Configure doc environment
31+
shell: julia --project=docs --color=yes {0}
32+
run: |
33+
using Pkg
34+
Pkg.develop(PackageSpec(path=pwd()))
35+
Pkg.instantiate()
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- run: julia --project=docs docs/make.jl
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)