Generate a Conda build recipe from a PyPI package and publish to an Anaconda channel
pypi_package
* : Name of PyPI package to buildpython_version
* : Python version to build package forpackage_version
: PyPi package version to build. Defaults tolatest
.upload_channel
* : Conda channel where the package will be uploadedaccess_token
* : Anaconda access token with read and write API permissionsbuild_channels
: Space separated string of conda channels to use during the build. Defaults toconda-forge
platforms
: Space separated string of platforms to build. Defaults to"win-64 osx-64 osx-arm64 linux-64 linux-aarch64"
stable
: Set this to true if this is a stable release. Passes a-l beta
arg if false. Defaults to false.wait
: If true, waits for the PyPi package to become available. Defaults to false.
*
denotes required inputs
on:
workflow_dispatch:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
name: Conda skeleton publish
steps:
- name: Publish conda package from PyPI package
uses: actions/conda-skeleton-publish@v1
with:
pypi_package: "driptorch"
python_version: "3.10"
upload_channel: "holtz"
access_token: ${{ secrets.ANACONDA_TOKEN }}
stable: true