added publish to pypi workflow #1
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: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: 3.11 | ||
| cache: 'poetry' | ||
| - name: Install dependencies | ||
| run: | | ||
| pipx install poetry | ||
| poetry install | ||
| - name: Build | ||
| run: | | ||
| poetry build | ||
| - name: Publish | ||
| if: '!contains(github.ref_name, "test")' | ||
|
Check failure on line 32 in .github/workflows/publish_to_pypi.yaml
|
||
| run: | | ||
| echo "Publishing to PyPI..." | ||
| poetry config pypi-token.pypi $PYPI_TOKEN | ||
| poetry publish | ||