Skip to content

Add action to build and upload package to anaconda #8

Add action to build and upload package to anaconda

Add action to build and upload package to anaconda #8

Workflow file for this run

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 init
source ~/.bashrc
conda activate base
conda install -y -c conda-forge conda-build
- name: Build and Upload Conda package
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
cd recipe
conda init
source ~/.bashrc
conda activate base
conda-build . --token $ANACONDA_TOKEN --user tcevaer -c tcevaer -c conda-forge