Skip to content

Commit

Permalink
add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Oct 28, 2024
1 parent a9802a4 commit da48013
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da48013

Please sign in to comment.