Skip to content

update version

update version #4

Workflow file for this run

name: PyPI - Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
jobs:
build_and_publish:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Extract version
run: echo "BIOSETS_VERSION=$(python setup.py --version)" >> $GITHUB_ENV
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
run: |
python -m twine upload dist/* --non-interactive
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}