-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 919 Bytes
/
deploy.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
name: CI
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.11
- name: Build conda environment
shell: bash -l {0}
run: conda env create -f environment.yml
- name: Install package
shell: bash -l {0}
run: |
conda activate cosmostatmap
pip install .
- name: Build map
shell: bash -l {0}
run: |
conda activate cosmostatmap
generate_map.py
mv cosmostat_map.png ./build
- name: GitHub pages action
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build