-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (34 loc) · 1.23 KB
/
conda_deployment.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
name: Conda deployment
on:
release:
types: [created]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]
name: Python ${{ matrix.python-version }} at ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Install conda-build
run: conda install conda-build
- name: Install anaconda-client
run: conda install anaconda-client
- name: Configurate conda-build
run: conda config --set anaconda_upload yes
# logout to prevent anaconda complaints
- name: Configurate conda-client from anaconda
run: |
anaconda login --hostname PELEPlat160rc1host${{ matrix.os }}${{ matrix.python-version }} --username ${{ secrets.ANACONDA_USER }} --password ${{ secrets.ANACONDA_PASSWD }}
- name: Deploy package to conda
run: conda build -c nostrumbiodiscovery -c conda-forge devtools/conda_recipe
- name: Logout from anaconda
run: anaconda logout