Skip to content

Build conda package #33

Build conda package

Build conda package #33

Workflow file for this run

name: Build conda package
on:
workflow_dispatch:
branches: [ '*' ] # allow manual trigger for all branches (only master will upload to Anaconda Cloud)
jobs:
conda_build_install_upload:
name: Test conda deployment of package with Python 3.12
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v4
- name: Conda environment creation and activation
uses: ./.github/actions/setup-conda
- name: Build package
run: conda build --no-anaconda-upload --no-copy-test-source-files recipe.local --output-folder ./conda_package
- name: Upload conda package artifact
uses: actions/upload-artifact@v4
- name: Login to Anaconda Cloud
run: anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
- name: Upload conda package to Anaconda Cloud
if: ${{ github.event_name =='workflow_dispatch' && github.ref == 'refs/heads/master' }}
run: |
anaconda upload ./conda_package/noarch/*.tar.bz2