Skip to content

Commit aff7d26

Browse files
Merge pull request #71 from JuliaML/cl/docs2
update doc CI
2 parents 9e65380 + a67bdde commit aff7d26

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

.github/workflows/Documenter.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
11
name: Documentation
22

33
on:
4-
pull_request:
54
push:
65
branches:
7-
- 'master'
8-
- 'release-'
6+
- master
97
tags: '*'
10-
release:
11-
types: [published]
8+
pull_request:
129

1310
jobs:
1411
build:
15-
runs-on: ${{ matrix.os }}
16-
strategy:
17-
matrix:
18-
julia-version: [1]
19-
os: [ubuntu-latest]
12+
runs-on: ubuntu-latest
2013
steps:
2114
- uses: actions/checkout@v2
2215
- uses: julia-actions/setup-julia@latest
2316
with:
24-
version: ${{ matrix.julia-version }}
25-
- name: Cache artifacts
26-
uses: actions/cache@v1
27-
env:
28-
cache-name: cache-artifacts
29-
with:
30-
path: ~/.julia/artifacts
31-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32-
restore-keys: |
33-
${{ runner.os }}-test-${{ env.cache-name }}-
34-
${{ runner.os }}-test-
35-
${{ runner.os }}-
17+
version: '1'
3618
- name: Install dependencies
3719
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
3820
- name: Build and deploy
3921
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
23+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
4124
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
@@ -12,3 +12,4 @@ jobs:
1212
- uses: JuliaRegistries/TagBot@v1
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)