Skip to content

silvxlabs/conda-skeleton-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conda Skeleton Publish

Generate a Conda build recipe from a PyPI package and publish to an Anaconda channel

Inputs

  • pypi_package* : Name of PyPI package to build
  • python_version* : Python version to build package for
  • package_version : PyPi package version to build. Defaults to latest.
  • upload_channel* : Conda channel where the package will be uploaded
  • access_token* : Anaconda access token with read and write API permissions
  • build_channels: Space separated string of conda channels to use during the build. Defaults to conda-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

Example usage

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