-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.64 KB
/
Copy pathrelease.yml
File metadata and controls
47 lines (44 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
ci:
uses: ./.github/workflows/ci.yml
release-please:
runs-on: ubuntu-24.04
environment: main
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
with:
release-type: python
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: steps.release.outputs.pr && !steps.release.outputs.release_created
with:
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
if: steps.release.outputs.pr && !steps.release.outputs.release_created
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
if: steps.release.outputs.pr && !steps.release.outputs.release_created
with:
python-version: "3.13"
- name: Update uv.lock
if: steps.release.outputs.pr && !steps.release.outputs.release_created
run: |
uv lock
if [ -n "$(git status --porcelain uv.lock)" ]; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add uv.lock
git commit -m "chore: update uv.lock for release"
git push
fi