Skip to content

Commit 3c96840

Browse files
committed
update actions so docs run on tags
1 parent 3a4b2cd commit 3c96840

File tree

2 files changed

+56
-18
lines changed

2 files changed

+56
-18
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,21 @@ jobs:
155155
# fail-on-alert: false
156156
# gh-pages-branch: main # put in to main so that documenter can build with the data
157157
# benchmark-data-dir-path: docs/src/bench
158-
docs:
159-
#needs: benchmark # So it can build the page with the results
160-
name: Documentation
161-
runs-on: ubuntu-latest
162-
steps:
163-
- uses: actions/checkout@v4
164-
- uses: julia-actions/setup-julia@v2
165-
with:
166-
version: '1.12'
167-
- run: |
168-
julia --project=docs -e '
169-
import Pkg;
170-
Pkg.develop(Pkg.PackageSpec(path=pwd()))
171-
Pkg.instantiate()'
172-
- run: julia --project=docs docs/make.jl #Pkg.add("Documenter"); using Pkg
173-
env:
174-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
158+
# docs:
159+
# #needs: benchmark # So it can build the page with the results
160+
# name: Documentation
161+
# runs-on: ubuntu-latest
162+
# steps:
163+
# - uses: actions/checkout@v4
164+
# - uses: julia-actions/setup-julia@v2
165+
# with:
166+
# version: '1.12'
167+
# - run: |
168+
# julia --project=docs -e '
169+
# import Pkg;
170+
# Pkg.develop(Pkg.PackageSpec(path=pwd()))
171+
# Pkg.instantiate()'
172+
# - run: julia --project=docs docs/make.jl #Pkg.add("Documenter"); using Pkg
173+
# env:
174+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Documentation
2+
on:
3+
push: # see https://github.com/orgs/community/discussions/26276#discussioncomment-4617932
4+
branches:
5+
- main
6+
paths-ignore:
7+
- README.md
8+
- .gitignore
9+
- LICENSE.md
10+
- 'docs/src/bench/**' # avoid feedback loop since benchmark modifies files in this path
11+
tags: [v*] # also want documentation for tags
12+
pull_request:
13+
branches:
14+
- main
15+
paths-ignore:
16+
- README.md
17+
- .gitignore
18+
- LICENSE.md
19+
- 'docs/src/bench/**'
20+
jobs:
21+
docs:
22+
#needs: benchmark # So it can build the page with the results
23+
name: Documentation
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: julia-actions/setup-julia@v2
28+
with:
29+
version: '1.12'
30+
- run: |
31+
julia --project=docs -e '
32+
import Pkg;
33+
Pkg.develop(Pkg.PackageSpec(path=pwd()))
34+
Pkg.instantiate()'
35+
- run: julia --project=docs docs/make.jl #Pkg.add("Documenter"); using Pkg
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)