Skip to content

Commit a84a91c

Browse files
committed
Added separate Documentation.yml
1 parent f80fbba commit a84a91c

File tree

2 files changed

+37
-19
lines changed

2 files changed

+37
-19
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,3 @@ jobs:
5555
token: ${{ secrets.CODECOV_TOKEN }}
5656
fail_ci_if_error: false
5757
verbose: true
58-
docs:
59-
name: Documentation
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v3
63-
- uses: julia-actions/setup-julia@v1
64-
with:
65-
version: '1'
66-
- run: |
67-
julia --project=docs -e '
68-
using Pkg
69-
Pkg.instantiate()
70-
Pkg.add("Documenter")
71-
Pkg.develop(PackageSpec(path=pwd()))
72-
Pkg.instantiate()'
73-
- run: julia --project=docs docs/make.jl
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main # update to match your development branch (master, main, dev, trunk, ...)
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
# These permissions are needed to:
13+
# - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
14+
# - Delete old caches: https://github.com/julia-actions/cache#usage
15+
permissions:
16+
actions: write
17+
contents: write
18+
pull-requests: read
19+
statuses: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: julia-actions/setup-julia@v2
24+
with:
25+
version: '1'
26+
- uses: julia-actions/cache@v2
27+
- name: Install dependencies
28+
shell: julia --color=yes --project=docs {0}
29+
run: |
30+
using Pkg
31+
Pkg.develop(PackageSpec(path=pwd()))
32+
Pkg.instantiate()
33+
- name: Build and deploy
34+
run: julia --color=yes --project=docs docs/make.jl
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
37+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key

0 commit comments

Comments
 (0)