-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (45 loc) · 1.25 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
41
42
43
44
45
name: Documentation
on:
push:
branches: [main]
tags: '*'
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: read
statuses: write
jobs:
build:
runs-on: ubuntu-latest
env:
GKSwstype: nul
DATADEPS_ALWAYS_ACCEPT: true
JULIA_CONDAPKG_BACKEND: "Null"
JULIA_PYTHONCALL_EXE: "python3"
steps:
- uses: actions/checkout@v4
# Install pytorch
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install pytorch
run: |
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
pip3 install numpy
# Install Julia
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- name: Install dependencies
shell: julia --color=yes --project=docs/ {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --color=yes --project=docs/ docs/make.jl