Enabled dynamic versioning again #9
Workflow file for this run
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| name: Build and release the installable python package. | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| cache-dependency-path: | | |
| setup.py | |
| - name: Install poetry | |
| run: | | |
| python -m pip install poetry==1.8.2 | |
| - name: Init | |
| run: make init-poetry | |
| - name: Build | |
| run: poetry build | |
| - name: Publish | |
| env: | |
| USERNAME: ${{ secrets.PYPI_USERNAME }} | |
| TOKEN: ${{ secrets.PYPI_TOKEN }} | |
| run: poetry publish -u $USERNAME -p $TOKEN |