Conda packaging #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conda packaging | |
on: | |
# Automatic trigger on release | |
release: | |
types: [ published ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
conda_build: | |
name: Build conda package | |
runs-on: "ubuntu-latest" | |
environment: anaconda | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: "3.10" | |
- name: Conda build | |
run: | | |
conda install conda-build anaconda-client | |
ANACONDA_API_TOKEN=${{ secrets.ANACONDA_PWD }} | |
conda build conda/recipe/ -c conda-forge --user romi-eu |