forked from ProjectPythia/projectpythia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 881 Bytes
/
ci.yaml
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
name: deploy-site
on:
push:
branches:
- main
jobs:
deploy-site:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,nodefaults
channel-priority: strict
mamba-version: '*'
activate-environment: pythia
auto-update-conda: false
python-version: 3.9
environment-file: ci/environment.yml
use-only-tar-bz2: true
- name: Build
run: |
conda env list
cd content
make -j4 html
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./content/_build/html
cname: projectpythia.org