Skip to content

Commit c78dfef

Browse files
committed
update docs .yml
1 parent 3c8e143 commit c78dfef

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/docs.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
name: Documentation
2+
23
on:
34
push:
45
branches:
56
- 'master'
67
- 'release-'
78
tags: '*'
89
pull_request:
10+
911
jobs:
10-
docs:
11-
name: Documentation
12+
build:
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
statuses: write
1217
runs-on: macOS-latest
1318
steps:
1419
- uses: actions/checkout@v4
1520
- uses: julia-actions/setup-julia@v2
1621
with:
17-
version: "1"
18-
- run: julia --project=docs -e '
19-
using Pkg;
20-
Pkg.develop(PackageSpec(; path=pwd()));
21-
Pkg.instantiate();'
22-
- run: julia --project=docs/ --code-coverage=user docs/make.jl
22+
version: '1'
23+
- uses: julia-actions/cache@v1
24+
- name: Install dependencies
25+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
26+
- name: Build and deploy
2327
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
29+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
2630
GKSwstype: 100
31+
run: julia --project=docs/ docs/make.jl
2732
- uses: julia-actions/julia-uploadcodecov@latest
2833
env:
2934
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)