Skip to content

Upload Python Package #7

Upload Python Package

Upload Python Package #7

Workflow file for this run

name: Upload Python Package
on:
release:
types: [created]
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.1.6"
- name: get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: set version
run: poetry version ${{ steps.get_version.outputs.VERSION }}
- name: publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --build