-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (37 loc) · 931 Bytes
/
docs.yaml
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
name: Documentation
on:
push:
branches:
- dev
tags:
- 'v*'
pull_request:
workflow_dispatch:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up julia
uses: julia-actions/setup-julia@v1
with:
version: '1'
arch: x64
- name: Install dependencies
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(path=pwd()))
Pkg.instantiate()
Pkg.add("Phylo")
Pkg.add("Documenter")
shell: julia --project=docs/ --color=yes {0}
- name: Build and deploy
run: |
julia --project=docs/ --color=yes docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GITHUB_EVENT_NAME: push