-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (33 loc) · 1000 Bytes
/
doc_deployment.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
name: Docs
on:
push:
branches: [ master ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
julia_version: '1.8.1'
jobs:
deploy-docs:
if: github.ref_name == 'master'
runs-on: ubuntu-latest
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}}
steps:
- name: checkout commit
uses: actions/checkout@master
- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{env.julia_version}}
- name: build package
uses: julia-actions/julia-buildpkg@latest
- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["Documenter"])'
- name: copy test data
run: cp -r ./test/data ./data
- name: build and deploy docs
run: julia --project --color=yes ./docs/make.jl