-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.02 KB
/
build.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: Build and Upload Conda Package
on:
workflow_run:
workflows: ["Upload package to PyPI"]
types:
- completed
pull_request:
branches:
- main
jobs:
build-and-upload-conda-package:
if: true
runs-on: ubuntu-latest
#${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
- name: Install conda-build
run: |
conda config --set always_yes yes
conda install -y -c conda-forge conda-build
- name: Ensure Conda is initialized
shell: bash -l {0}
run: conda init bash
- name: Build and Upload Conda package
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
cd recipe
conda-build . --token $ANACONDA_TOKEN --user tcevaer -c tcevaer -c conda-forge