Skip to content

Commit 5a3d2b5

Browse files
committed
update docs in CI.yml 2
1 parent 8055e81 commit 5a3d2b5

File tree

2 files changed

+38
-39
lines changed

2 files changed

+38
-39
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -44,42 +44,4 @@ jobs:
4444
with:
4545
token: ${{ secrets.CODECOV_TOKEN }} # required
4646
fail_ci_if_error: true
47-
files: lcov.info
48-
docs:
49-
name: Documentation
50-
51-
on:
52-
push:
53-
branches:
54-
- master # update to match your development branch (master, main, dev, trunk, ...)
55-
tags: '*'
56-
pull_request:
57-
58-
jobs:
59-
build:
60-
# These permissions are needed to:
61-
# - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
62-
# - Delete old caches: https://github.com/julia-actions/cache#usage
63-
permissions:
64-
actions: write
65-
contents: write
66-
pull-requests: read
67-
statuses: write
68-
runs-on: ubuntu-latest
69-
steps:
70-
- uses: actions/checkout@v4
71-
- uses: julia-actions/setup-julia@v2
72-
with:
73-
version: '1'
74-
- uses: julia-actions/cache@v2
75-
- name: Install dependencies
76-
shell: julia --color=yes --project=docs {0}
77-
run: |
78-
using Pkg
79-
Pkg.develop(PackageSpec(path=pwd()))
80-
Pkg.instantiate()
81-
- name: Build and deploy
82-
run: julia --color=yes --project=docs docs/make.jl
83-
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
85-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
47+
files: lcov.info
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+
- master # 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.11'
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)