-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.62 KB
/
release.yml
File metadata and controls
47 lines (44 loc) · 1.62 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@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4
id: release
with:
release-type: python
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
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@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
if: steps.release.outputs.pr && !steps.release.outputs.release_created
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
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