Skip to content

v0.0.1rc0

v0.0.1rc0 #2

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# build python package
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade build
- name: Get previous tag
id: tag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Build package
run: VERSION=${{ steps.tag.outputs.tag }} RELEASE=true python -m build --sdist --wheel
# publish python package
- name: Publish package
if: ${{ !env.ACT }}
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/