Added github action to publish on tag #1
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: deploy-on-tag | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Set up Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Log in to pypi | |
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }} | |
- name: Build package | |
run: poetry build | |
- name: Publish package | |
run: poetry publish |