Skip to content

Commit

Permalink
Reworked conda publish
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Dec 24, 2023
1 parent 978135d commit ecdfa4e
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/publish-to-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,32 @@ on: [push, workflow_dispatch]

jobs:
setup:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # windows-latest, macOS-latest
python-version: [3.10]
name: Python ${{ matrix.python-version }} example
steps:
- uses: actions/checkout@v4
- name: Setting up anaconda for channels
- name: Check Out Repo
uses: actions/checkout@v4

- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
publish:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- name: Publish to anaconda.org
uses: fcakyon/[email protected]
with:
subdir: 'conda'
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
platforms: 'win osx linux'
- run: conda --version
- run: which python

- name: Install Dependencies
run: |
conda install poetry
poetry install
- name: Build Conda Package
run: conda build conda --croot build/ --output-folder dist/

- name: Publish to Anaconda
run: anaconda -t $ANACONDA_TOKEN upload --user beveradb build/*/audio-separator*bz2

0 comments on commit ecdfa4e

Please sign in to comment.