chore(deps): update dependency sphinx to v9 #1035
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: Release | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Install dependencies | |
| run: pip install build twine | |
| - name: Build | |
| run: python3 -m build | |
| - name: Check | |
| run: twine check --strict dist/* | |
| - name: Upload packages artifact | |
| if: github.event_name == 'release' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: python-packages | |
| path: dist/ | |
| publish: | |
| if: github.event_name == 'release' | |
| needs: [build] | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/hcloud | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download packages artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: python-packages | |
| path: dist/ | |
| - name: Publish packages to PyPI | |
| uses: pypa/[email protected] |