-
Notifications
You must be signed in to change notification settings - Fork 48
77 lines (67 loc) · 1.77 KB
/
CI.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Theoretical Physics Reference
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: build html
runs-on: ubuntu-latest
environment: Testing
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache conda
uses: actions/cache@v3
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
- name: Conda info
shell: bash -l {0}
run: |
set -e
conda info
conda list
- name: Build html
shell: bash -l {0}
run: |
set -e
sudo apt-get update
sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-latex-recommended dvipng latexmk libkpathsea-dev libgs-dev
sudo pip3 install "sphinx==1.7.6" lxml
bin/test_travis.sh
- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: _build/
deploy:
name: Deploy in Testing/Production
runs-on: ubuntu-latest
needs: build
environment:
name: Testing
url: ${{ steps.deploy.outputs.deploy_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: my-artifact
path: _build/
- name: Deploy Testing
id: deploy
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
shell: bash -l {0}
run: |
set -e
bin/ci1.sh