-
Notifications
You must be signed in to change notification settings - Fork 20
60 lines (52 loc) · 1.84 KB
/
deploy.yml
File metadata and controls
60 lines (52 loc) · 1.84 KB
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
# .github/workflows/deploy.yml
name: Deploy on Tag
on:
push:
tags:
- '*' # match any single-level tag
- '*/*' # also match nested tag names like `releases/1.0.0`
jobs:
call-ci:
uses: ./.github/workflows/ci.yml
deploy_wo_prefix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
needs: call-ci
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: tester
python-version: ${{ matrix.python-version }}
channels: anaconda, conda-forge, bioconda, defaults
auto-update-conda: true
- name: Run deploy script
shell: bash -l {0}
run: |
conda create --yes -n deploytest1 python=${{ matrix.python-version }} git
conda activate deploytest1
bash ./deploy.sh -r "${{ github.repository }}" -t "${{ github.ref_name }}"
deploy_w_prefix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
needs: call-ci
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: tester
python-version: ${{ matrix.python-version }}
channels: anaconda, conda-forge, bioconda, defaults
auto-update-conda: true
- name: Run deploy script
shell: bash -l {0}
run: |
conda create --yes -n deploytest2 python=${{ matrix.python-version }} git jupyter notebook
conda activate deploytest2
# without adding a dummy kernel, can't guarantee location exists
python -m ipykernel install --name="dummy" --prefix="/home/runner/.local"
bash ./deploy.sh -r "${{ github.repository }}" -t "${{ github.ref_name }}" -j "/home/runner/.local" -c "/home/runner"