diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..68567fd --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,31 @@ +name: publish + +on: + push: + tags: + - "v*.*.*" + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: + name: PyPI + url: https://pypi.org/p/googleapis-gen + permissions: + id-token: write + env: + TRUSTED_PUBLISHING: always + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + + - run: uv build + - run: uv publish