Skip to content

Commit 59016e4

Browse files
Build documentation using a Github action (#20)
Replace the Travis configuration for documentation building with a Github action.
1 parent 5a016fb commit 59016e4

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
name: build on Julia ${{ matrix.julia-version }}
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
julia-version: ['1.0', '1.1', '1.2', '1.3', 'nightly']
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: julia-actions/setup-julia@v1
20+
with:
21+
version: ${{ matrix.julia-version }}
22+
- name: Install dependencies
23+
run: julia --project=docs -e 'using Pkg; Pkg.instantiate()'
24+
- name: Build and deploy
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
27+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
28+
run: julia --project=docs/ docs/make.jl
29+
- uses: actions/upload-artifact@v1
30+
with:
31+
name: docs
32+
path: docs/build

.travis.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,3 @@ notifications:
1515
on_start: never
1616
codecov: true
1717
coveralls: true
18-
jobs:
19-
include:
20-
- &docs
21-
stage: "Documentation"
22-
julia: 1.0
23-
script:
24-
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
25-
- julia --project=docs/ docs/make.jl
26-
- <<: *docs
27-
julia: 1.1
28-
- <<: *docs
29-
julia: 1.2
30-
- <<: *docs
31-
julia: 1.3
32-
- <<: *docs
33-
julia: nightly

0 commit comments

Comments
 (0)