-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (41 loc) · 1.17 KB
/
docsBuild.yml
File metadata and controls
41 lines (41 loc) · 1.17 KB
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
name: Docs
on:
workflow_dispatch:
push:
paths: # rebuild the docs when the version changes or the docs change
- docs/*
- Project.toml
pull_request: # run when pull requests are made
paths:
- docs/*
- Project.toml
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.7'
- name: Install dependencies
run: |
sudo apt install libxt6 libxrender1 libxext6 libqt5widgets5
- name: Instantiate
env:
PYTHON: ""
run: |
julia --project=docs -e '
using Pkg
Pkg.instantiate()
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- name: Build and deploy
env:
PYTHON: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: julia --project=docs --code-coverage=user docs/make.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1