Skip to content

Commit 5f4769e

Browse files
authored
build docs with Github Actions (#188)
* build docs with Github Actions * remove DOCUMENTER_KEY
1 parent f26e2c9 commit 5f4769e

File tree

4 files changed

+41
-18
lines changed

4 files changed

+41
-18
lines changed

.github/workflows/Documentation.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Documentation
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
- 'release-'
9+
tags: '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
julia-version: [1]
17+
os: [ubuntu-latest]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: julia-actions/setup-julia@latest
21+
with:
22+
version: ${{ matrix.julia-version }}
23+
- name: Cache artifacts
24+
uses: actions/cache@v1
25+
env:
26+
cache-name: cache-artifacts
27+
with:
28+
path: ~/.julia/artifacts
29+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
30+
restore-keys: |
31+
${{ runner.os }}-test-${{ env.cache-name }}-
32+
${{ runner.os }}-test-
33+
${{ runner.os }}-
34+
- name: Install dependencies
35+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
36+
- name: Build and deploy
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: julia --project=docs/ docs/make.jl

.github/workflows/TagBot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ jobs:
99
- uses: JuliaRegistries/TagBot@v1
1010
with:
1111
token: ${{ secrets.GITHUB_TOKEN }}
12+
ssh: ${{ secrets.TAGBOT }}

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Packages that appear to perform just a subset of what ImageFiltering does:
2929
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
3030
[docs-stable-url]: https://JuliaImages.github.io/ImageFiltering.jl/stable
3131
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
32-
[docs-dev-url]: https://JuliaImages.github.io/ImageFiltering.jl/latest
32+
[docs-dev-url]: https://JuliaImages.github.io/ImageFiltering.jl/dev

0 commit comments

Comments
 (0)