Skip to content

Commit 0721385

Browse files
authored
Split docs action (#329)
* Split docs action * Refactor CI workflow by removing documentation job Removed the documentation job from CI workflow and adjusted token usage.
1 parent cd626a6 commit 0721385

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,3 @@ jobs:
4242
with:
4343
file: lcov.info
4444
token: ${{ secrets.CODECOV_TOKEN }}
45-
docs:
46-
name: Documentation
47-
runs-on: ubuntu-latest
48-
env:
49-
# Fix for Plots with GR backend, see https://github.com/jheinen/GR.jl/issues/422
50-
GKSwstype: nul
51-
steps:
52-
- uses: actions/checkout@v4
53-
- uses: julia-actions/setup-julia@v2
54-
with:
55-
version: '1'
56-
- name: Install dependencies
57-
shell: julia --color=yes --project=docs/ {0}
58-
run: |
59-
using Pkg
60-
Pkg.develop(PackageSpec(path=pwd()))
61-
Pkg.instantiate()
62-
- run: julia --project=docs --color=yes docs/make.jl
63-
env:
64-
DATADEPS_ALWAYS_ACCEPT: true # For MLDatasets.MNIST
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches: [master]
5+
tags: '*'
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
permissions:
9+
pull-requests: read # Required when using `push_preview=true`
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: julia-actions/setup-julia@v2
16+
with:
17+
version: '1'
18+
- name: Install dependencies
19+
shell: julia --color=yes --project=docs/ {0}
20+
run: |
21+
using Pkg
22+
Pkg.develop(PackageSpec(path=pwd()))
23+
Pkg.instantiate()
24+
- name: Build and deploy
25+
run: julia --project=docs --color=yes docs/make.jl
26+
env:
27+
DATADEPS_ALWAYS_ACCEPT: true # For MLDatasets.MNIST
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)