Merge pull request #61 from openneuropet/dev #5
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 to PyPI | |
| on: | |
| push: | |
| tags: | |
| - '**' | |
| env: | |
| PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_PETDEFACE }} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| pipx install poetry | |
| poetry install | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| cache: 'poetry' | |
| - name: Build | |
| run: | | |
| poetry build | |
| - name: Publish | |
| if: ${{ !contains(github.ref_name, 'test') }} | |
| run: | | |
| echo "Publishing to PyPI..." | |
| poetry config pypi-token.pypi $PYPI_TOKEN | |
| poetry publish |