-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.26 KB
/
publish.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Publish DataSAIL
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: MPP
use-mamba: true
- name: Install environment
shell: bash -l {0}
run: |
conda install -y anaconda-client conda-build git
- name: Build DataSAIL for linux-64
shell: bash -l {0}
run: |
conda-build -q -c conda-forge -c bioconda --output-folder . --no-test recipe
- name: Convert DataSAIL to osx-64
shell: bash -l {0}
run: |
conda convert -p osx-64 linux-64/*.tar.bz2
- name: Publish DataSAIL to Conda
env:
ANACONDA_TOKEN: ${{ secrets.DATASAIL_ANACONDA_TOKEN }}
shell: bash -l {0}
run: |
anaconda -t "$ANACONDA_TOKEN" upload linux-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload osx-64/*.tar.bz2