Skip to content

Commit e6f8607

Browse files
authored
Merge pull request #33 from Fluorescence-Tools/development
Add GitHub action to build and deposit conda packages
2 parents cde9231 + 8e8b2d7 commit e6f8607

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/conda-release.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
name: Build and Upload Conda Packages
3+
4+
on:
5+
# push:
6+
# branches:
7+
# - develop
8+
release:
9+
types: ['released', 'prereleased']
10+
11+
jobs:
12+
build:
13+
name: CondaBuild (${{ matrix.python-version }}, ${{ matrix.os }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
19+
python-version: ["3.8", "3.9", "3.10"]
20+
steps:
21+
- name: Checkout Repository
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Conda
25+
uses: conda-incubator/setup-miniconda@v3
26+
with:
27+
auto-update-conda: true
28+
python-version: ${{ matrix.python-version }}
29+
mamba-version: "*"
30+
channels: conda-forge,defaults
31+
channel-priority: true
32+
33+
- name: Display Conda Settings
34+
shell: bash -el {0}
35+
run: |
36+
conda info
37+
conda list
38+
conda config --show-sources
39+
conda config --show
40+
printenv | sort
41+
42+
- name: Build Conda Package
43+
shell: bash -el {0}
44+
run: |
45+
mamba install conda-build boa anaconda-client
46+
conda mambabuild conda-recipe --output-folder conda-bld
47+
48+
- name: Upload Conda Package
49+
shell: bash -el {0}
50+
run: |
51+
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u tpeulen --force conda-bld/**/*.tar.bz2
52+

0 commit comments

Comments
 (0)