Skip to content

Commit 4769cd1

Browse files
authored
Split docs action
1 parent cd626a6 commit 4769cd1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
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)