improve detector model changes (#48) #163
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: Upload Python Package | |
on: | |
push: | |
tags: | |
- v** | |
# Allows you to run this workflow manually from the Actions a tab | |
workflow_dispatch: | |
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.5.0" | |
- 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 |