Skip to content

Commit 97c70c9

Browse files
committed
Update Github action following Documenter current doc
1 parent abe30a3 commit 97c70c9

File tree

3 files changed

+31
-24
lines changed

3 files changed

+31
-24
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,3 @@ jobs:
4747
- uses: codecov/codecov-action@v1
4848
with:
4949
file: lcov.info
50-
docs:
51-
name: Documentation
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v2
55-
- uses: julia-actions/setup-julia@v1
56-
with:
57-
version: '1'
58-
- run: |
59-
julia --project=docs -e '
60-
using Pkg
61-
Pkg.develop(PackageSpec(path=pwd()))
62-
Pkg.instantiate()'
63-
- run: |
64-
julia --project=docs -e '
65-
using Documenter: DocMeta, doctest
66-
using IntervalRootFinding
67-
DocMeta.setdocmeta!(IntervalRootFinding, :DocTestSetup, :(using IntervalRootFinding); recursive=true)
68-
doctest(IntervalRootFinding)'
69-
- run: julia --project=docs docs/make.jl
70-
env:
71-
GKSwstype: nul # Fix for Plots with GR backend
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/TagBot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ jobs:
1212
- uses: JuliaRegistries/TagBot@v1
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/documentation.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master # update to match your development branch (master, main, dev, trunk, ...)
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
actions: write
14+
contents: write
15+
pull-requests: read
16+
statuses: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1'
23+
- uses: julia-actions/cache@v2
24+
- name: Install dependencies
25+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
26+
- name: Build and deploy
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
29+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
30+
run: julia --project=docs/ docs/make.jl

0 commit comments

Comments
 (0)