-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.39 KB
/
Documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Documentation
on:
push:
branches:
- main
tags:
- v*
pull_request:
workflow_dispatch:
env:
JULIA_PKG_SERVER: https://internal.juliahub.com/
jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: julia-actions/cache@v1
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: PumasAI/add-private-registry@main
with:
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
private_registry_name: JuliaHubRegistry
private_registry_uuid: de52bcdf-fcb2-40cf-a397-3d64b64f4d9c
- name: Install dependencies
run: DISPLAY=:0 xvfb-run --auto-servernum -s '-screen 0 1024x768x24' julia --project=docs -e 'using Pkg;
Pkg.add(PackageSpec(name = "ModelingToolkitStandardLibrary", url = "https://github.com/SciML/ModelingToolkitStandardLibrary.jl", rev = "main"));
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: DISPLAY=:0 xvfb-run --auto-servernum -s '-screen 0 1024x768x24' julia --project=docs/ docs/make.jl