Release v3.0.2 #7
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: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build distributions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build sdist + wheel | |
| run: | | |
| python -m pip install --upgrade pip build twine | |
| python -m build | |
| twine check dist/* | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| publish: | |
| name: Publish to PyPI (trusted publishing) | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # PyPI trusted publishing requires id-token write permission to mint OIDC tokens. | |
| permissions: | |
| id-token: write | |
| # Bind to a GitHub Environment named "pypi" so PyPI's trusted-publisher | |
| # configuration can scope to it. Configure required reviewers / branch | |
| # protection on the environment for an extra approval step before upload. | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/pydeeplog | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |