chore(deps): update astral-sh/setup-uv action to v7 (#546) #428
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
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: # added using https://github.com/step-security/secure-workflows | |
| contents: read | |
| jobs: | |
| release-please: | |
| permissions: | |
| contents: write # for googleapis/release-please-action to create release commit | |
| pull-requests: write # for googleapis/release-please-action to create release PR | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3 | |
| id: release | |
| with: | |
| command: manifest | |
| token: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}} | |
| default-branch: main | |
| signoff: "OpenFeature Bot <[email protected]>" | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| release_tag_name: ${{ steps.release.outputs.tag_name }} | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: publish | |
| permissions: | |
| # IMPORTANT: this permission is mandatory for trusted publishing to pypi | |
| id-token: write | |
| needs: release-please | |
| if: ${{ fromJSON(needs.release-please.outputs.release_created || false) }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: uv sync --frozen | |
| - name: Build a binary wheel and a source tarball | |
| run: uv build | |
| - name: Publish a Python distribution to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |