Release 4.10.0 #2
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: deploy | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| # Set permissions at the job level. | |
| permissions: {} | |
| jobs: | |
| package: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Build and Check Package | |
| uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0 | |
| deploy: | |
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest-django' | |
| needs: [package] | |
| runs-on: ubuntu-24.04 | |
| environment: deploy | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| # For trusted publishing. | |
| id-token: write | |
| steps: | |
| - name: Download Package | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Packages | |
| path: dist | |
| - name: Publish package | |
| uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 |