-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.06 KB
/
conda-build-publish.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
name: Conda Build Python 🐍 package, and Publish 🎉.
on:
# release:
# types: [published]
workflow_dispatch:
jobs:
conda_build:
name: Build conda package for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
platform: "linux-64"
- os: macos-latest
platform: "osx-64"
steps:
- uses: actions/checkout@v2
- name: Get history and tags for SCM versioning
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: conda-incubator/setup-miniconda@v2
- name: Install Conda-build
run: conda install conda-build anaconda-client
- name: Conda build nuspacesim
run: conda build -c conda-forge recipe
- name: Conda upload nuspacesim
run: |
$CONDA/bin/anaconda -v -t ${{ secrets.ANACONDA_UPLOAD_TOKEN }} upload \
-u nuspacesim $CONDA/conda-bld/${{ matrix.platform }}/nuspacesim-*