Skip to content

Commit 94c2c06

Browse files
committed
Fixed docs
1 parent facc207 commit 94c2c06

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,25 @@ jobs:
3333

3434
docs:
3535
name: Documentation
36+
permissions:
37+
actions: write
38+
contents: write
39+
pull-requests: read
40+
statuses: write
3641
runs-on: ubuntu-latest
3742
steps:
3843
- uses: actions/checkout@v2
3944
- uses: julia-actions/setup-julia@v1
4045
with:
4146
version: '1.10'
42-
- run: |
43-
julia --project=docs -e '
44-
using Pkg
45-
Pkg.develop(PackageSpec(path=pwd()))
46-
Pkg.instantiate()'
47-
- run: julia --project=docs docs/make.jl
47+
- uses: julia-actions/cache@v2
48+
- name: Install dependencies
49+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
50+
- name: Build and deploy
4851
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
53+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
54+
run: julia --project=docs/ docs/make.jl
5155

5256
downgrade:
5357
name: Downgrade ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}

0 commit comments

Comments
 (0)