-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (36 loc) · 1.21 KB
/
build-conda.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
42
43
name: CI build Anaconda
on:
workflow_dispatch:
release:
types:
- released
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-2019, macos-12]
os: [windows-latest]
name: Build Anaconda packages on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: false
conda-channels: conda-forge
- name: Prepare conda environment
run: |
conda install mamba boa conda-verify anaconda-client
mamba update --all
mkdir build_output
- name: Build packages
run: conda mambabuild --no-anaconda-upload --output-folder ./build_output ./packaging/conda
- uses: actions/upload-artifact@v3
with:
name: build_outputs
path: ./build_output/*/pysces*.tar.bz2
- name: Upload to anaconda.org
# to publish when a GitHub Release is created:
if: github.event_name == 'release' && github.event.action == 'released'
run: anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u pysces ./build_output/*/pysces*.tar.bz2