Skip to content

Update publish.yml

Update publish.yml #56

Workflow file for this run

name: Publish to PyPI and Anaconda.org

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

Invalid type for `job.strategy`
on:
release:
types:
- published
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'manual run'
jobs:
publish_to_anaconda:
name: Publish to Anaconda.org
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macOS-13, macOS-14]
defaults: # /~https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Setup miniconda # /~https://github.com/marketplace/actions/setup-miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge,ncb,anaconda,defaults
python-version: 3.11
auto-activate-base: false
activate-environment: anaconda-client-env
environment-file: build_env.yml
condarc-file: condarc.yml
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
# - name: Update pip in python 312
# if: ${{ matrix.python-version == 3.12}}
# run: |
# conda install "setuptools>0.66" "pip>23" -y -c conda-forge
# conda install "setuptools>0.66" "pip>23" -n base -y -c conda-forge
# - name: Update pip in python 312
# if: ${{ matrix.python-version == 3.12}}
# run: |
# conda list
- name: Build and upload to anaconda
run: |
conda mambabuild conda/pyvideoreader -c conda-forge --python ${{ matrix.python-version }} --user ncb --token $ANACONDA_TOKEN
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}