publish_package #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish_package | |
on: | |
release: | |
types: [published] | |
tags: | |
- '**' | |
jobs: | |
anaconda_publish: | |
name: Publish package to anaconda | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish Anaconda package to Anaconda.org | |
uses: BEFH/[email protected] | |
with: | |
subDir: 'conda' | |
channels: '-c conda-forge -c bioconda -c bfh' | |
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} | |
publish: true | |
test_all: true | |
convert_win: false | |
convert_osx: false | |
deploy_pypi: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel poetry | |
- name: Build and publish | |
run: | | |
poetry build | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish |