Skip to content

Commit c9d6d16

Browse files
Update Docs.yml
1 parent 5a36d31 commit c9d6d16

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/Docs.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Documentation
33
on:
44
push:
55
branches:
6-
# Build the master branch.
7-
- master
6+
- main
87
tags: '*'
98
pull_request:
109

@@ -14,20 +13,14 @@ concurrency:
1413
group: ${{ github.workflow }}-${{ github.ref }}
1514
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1615

16+
permissions:
17+
contents: write
18+
pull-requests: read
19+
1720
jobs:
1821
docs:
1922
runs-on: ubuntu-latest
23+
2024
steps:
21-
- uses: actions/checkout@v2
22-
- uses: julia-actions/setup-julia@latest
23-
with:
24-
version: '1'
25-
- name: Install dependencies
26-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
27-
- name: Build and deploy
28-
env:
29-
GKSwstype: nul # GR backend issues
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
31-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
32-
JULIA_DEBUG: Documenter # Print `@debug` statements (https://github.com/JuliaDocs/Documenter.jl/issues/955)
33-
run: julia --project=docs/ docs/make.jl
25+
- name: Build and deploy Documenter.jl docs
26+
uses: TuringLang/actions/DocsDocumenter@main

0 commit comments

Comments
 (0)