v1.0.4 #4
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
| # | |
| # Publishes the release to PyPI and docs to github pages | |
| # | |
| name: "publish release" | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: install build dependencies | |
| run: python -m pip install --upgrade build | |
| - name: build | |
| run: python -m build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| path: dist | |
| pypi-publish: | |
| name: Upload release to PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/django-request-queue-timeout | |
| permissions: | |
| id-token: write | |
| needs: [build] | |
| steps: | |
| - name: Retrieve distribution | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact | |
| path: dist | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |