Skip to content

willbakst is uploading a new release to PyPI #1

willbakst is uploading a new release to PyPI

willbakst is uploading a new release to PyPI #1

Workflow file for this run

name: release
run-name: ${{ github.actor }} is uploading a new release to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1.3.1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: Get release version
run: echo "RELEASE_VERSION=$(poetry version | awk '{print $2}')" >> $GITHUB_ENV
- name: Build And Publish Python Package
run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}