Skip to content

revert to ubuntu 22.04 in actions, rename to miniforge in docker action and require setuptools #874

revert to ubuntu 22.04 in actions, rename to miniforge in docker action and require setuptools

revert to ubuntu 22.04 in actions, rename to miniforge in docker action and require setuptools #874

name: publish_conda
on:
release:
types: [published]
push:
branches: [ master ]
tags:
- '**'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for use later with the meta.yaml file for conda-recipes
- name: publish-to-conda
uses: TomographicImaging/conda-package-publish-action@v2
with:
subDir: 'Wrappers/Python/conda-recipe'
channels: '-c conda-forge -c ccpi'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
publish: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
test_all: ${{(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) || (github.ref == 'refs/heads/master')}}
additional_apt_packages: 'libegl1-mesa libegl1-mesa-dev'