Merge branch 'main' into mediux-api #134
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: Publishing | |
| on: push | |
| jobs: | |
| build: | |
| name: Build | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| run: uv python install 3.14 | |
| - name: Build wheel and source tarball | |
| run: uv build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-package-distributions | |
| path: dist/ | |
| validate: | |
| name: Validate dist | |
| needs: | |
| - build | |
| permissions: {} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: python-package-distributions | |
| path: dist/ | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| run: uv python install 3.14 | |
| - name: Validate dist | |
| run: uv run --with twine twine check dist/* | |
| publish: | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/Mediux-Posters | |
| if: startsWith(github.ref, 'refs/tags/') | |
| name: Publish to PyPI | |
| needs: | |
| - build | |
| - validate | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: python-package-distributions | |
| path: dist/ | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |