Skip to content

Commit 2322781

Browse files
authored
Run Documenter job on tags (#332)
1 parent b5afb2f commit 2322781

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,3 @@ jobs:
6262
with:
6363
token: ${{ secrets.CODECOV_TOKEN }}
6464
file: lcov.info
65-
docs:
66-
name: Documentation
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v4
70-
- uses: julia-actions/setup-julia@v1
71-
with:
72-
version: '1'
73-
- run: |
74-
julia --project=docs -e '
75-
using Pkg
76-
Pkg.develop(PackageSpec(path=pwd()))
77-
Pkg.instantiate()'
78-
- run: julia --project=docs docs/make.jl
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
paths-ignore:
8+
- 'LICENSE.md'
9+
- 'README.md'
10+
- '.github/workflows/TagBot.yml'
11+
pull_request:
12+
paths-ignore:
13+
- 'LICENSE.md'
14+
- 'README.md'
15+
- '.github/workflows/TagBot.yml'
16+
17+
jobs:
18+
build:
19+
permissions:
20+
contents: write
21+
statuses: write
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v1
26+
with:
27+
version: '1.10'
28+
- uses: julia-actions/cache@v1
29+
- name: Install dependencies
30+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
31+
- name: Build and deploy
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
34+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
35+
run: julia --project=docs/ docs/make.jl

0 commit comments

Comments
 (0)