-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.27 KB
/
Docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Docs
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
JULIA_NUM_THREADS: 2
jobs:
BuildDocs:
permissions:
# Required by julia-actions/cache.
actions: write
# Required by julia-actions/cache and actions-gh-pages.
contents: write
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
with:
cache-name: 'docs'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ConfigureDocs:
needs: BuildDocs
if: github.ref == 'refs/heads/main'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'docs-output'
- run: echo "poweranalyses.jl.huijzer.xyz" > CNAME
- run: echo "<meta http-equiv=\"refresh\" content=\"0; url=./dev/\"/>" > index.html
- uses: peaceiris/actions-gh-pages@v4
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: 'docs-output'