Skip to content

Commit b06ee87

Browse files
authored
docs: push preview builds of docs (#56)
1 parent c602b1a commit b06ee87

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ jobs:
112112
docs:
113113
name: Documentation
114114
runs-on: ubuntu-latest
115+
permissions:
116+
pull-requests: read # Required when using `push_preview=true`
117+
statuses: write # Optional, used to report documentation build statuses
115118
steps:
116119
- uses: actions/checkout@v3
117120
- uses: julia-actions/setup-julia@v1
@@ -128,6 +131,7 @@ jobs:
128131
run: julia --color=yes --project=docs/ --code-coverage docs/make.jl
129132
env:
130133
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
134+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131135
- uses: julia-actions/julia-processcoverage@v1
132136
- uses: codecov/codecov-action@v3
133137
with:

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ Mocking.apply(mocking_patch) do
8383
)
8484
end
8585

86-
deploydocs(; repo="github.com/JuliaComputing/JuliaHub.jl")
86+
deploydocs(; repo="github.com/JuliaComputing/JuliaHub.jl", push_preview=true)

0 commit comments

Comments
 (0)