Skip to content

Commit 68b1a1c

Browse files
Copilotyebai
andcommitted
Fix documentation deployment error by replacing external action with standard Documenter.jl workflow
Co-authored-by: yebai <[email protected]>
1 parent 83269d8 commit 68b1a1c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/Docs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- name: Build and deploy Documenter.jl docs
26-
uses: TuringLang/actions/DocsDocumenter@main
25+
- uses: actions/checkout@v4
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: '1'
29+
- uses: julia-actions/cache@v1
30+
- name: Install dependencies
31+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
32+
- name: Build and deploy
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
36+
run: julia --project=docs/ docs/make.jl

docs/make.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ makedocs(;
1717
strict=false,
1818
checkdocs=:exports,
1919
)
20+
21+
deploydocs(;
22+
repo="github.com/TuringLang/Bijectors.jl.git",
23+
push_preview=true,
24+
)

0 commit comments

Comments
 (0)