Skip to content

Commit 0c3671d

Browse files
committed
autobuild docs with actions
1 parent 6f19f53 commit 0c3671d

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ref: https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#GitHub-Actions-1
2+
name: Documentation
3+
4+
on:
5+
push:
6+
branches:
7+
- develop
8+
tags: '*'
9+
pull_request:
10+
release:
11+
types: [published, created]
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: julia-actions/setup-julia@latest
19+
with:
20+
version: 1.5
21+
- name: Install dependencies
22+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
23+
- name: Build and deploy
24+
env:
25+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
26+
run: julia --project=docs/ docs/make.jl

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ deploydocs(
1717
repo = "github.com/LCSB-BioCore/DiDa.jl.git",
1818
target = "build",
1919
branch = "gh-pages",
20-
devbranch = "master",
20+
devbranch = "develop",
2121
versions = "stable" => "v^",
2222
)

0 commit comments

Comments
 (0)