build & release #23
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: build & release | |
on: | |
create: | |
tags: | |
- '*' | |
jobs: | |
build-n-publish: | |
name: Build and publish to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.8 | |
- name: Install poetry | |
uses: snok/[email protected] | |
with: | |
version: 1.1.5 | |
virtualenvs-create: true | |
- name: Install dependencies | |
run: poetry install | |
- name: Build and publish to PyPI | |
run: | | |
poetry build | |
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} |