chore(deps): update actions/checkout action to v5 (#288) #217
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 | |
| jobs: | |
| release: | |
| name: release | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| steps: | |
| - name: release | |
| id: release | |
| uses: googleapis/release-please-action@v4.3.0 | |
| with: | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| release-type: python | |
| publish: | |
| name: publish | |
| runs-on: ubuntu-latest | |
| needs: release | |
| # only run when a new release is created | |
| if: ${{ needs.release.outputs.release_created }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| environment: [pypi] | |
| environment: ${{ matrix.environment }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Build the project | |
| run: uv build | |
| - name: Publish (PyPI) | |
| if: ${{ matrix.environment=='pypi' }} | |
| run: uv publish --token ${{ secrets.PYPI_API_TOKEN }} |