Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build documentation using a Github action #20

Merged
merged 1 commit into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation

on:
push:
branches:
- develop
tags: '*'
pull_request:

jobs:
build:
name: build on Julia ${{ matrix.julia-version }}
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1.0', '1.1', '1.2', '1.3', 'nightly']
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia --project=docs -e 'using Pkg; Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
- uses: actions/upload-artifact@v1
with:
name: docs
path: docs/build
16 changes: 0 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,3 @@ notifications:
on_start: never
codecov: true
coveralls: true
jobs:
include:
- &docs
stage: "Documentation"
julia: 1.0
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
- <<: *docs
julia: 1.1
- <<: *docs
julia: 1.2
- <<: *docs
julia: 1.3
- <<: *docs
julia: nightly