Merge pull request #15 from vidok/vidok/add-retry-and-timeout-options #24
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: release | |
on: | |
push: | |
tags: | |
- '0.*' | |
- '1.*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python '${{ matrix.python-version }}' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '${{ matrix.python-version }}' | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry==1.6.* | |
- name: Release | |
run: | | |
poetry install | |
poetry version ${{ github.ref_name }} | |
poetry build | |
echo "Tag name from github.ref_name: ${{ github.ref_name }}" | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish -u ${{ secrets.PYPI_USERNAME }} |