File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11
11
# c.f. https://docs.pypi.org/trusted-publishers/using-a-publisher/
12
12
permissions :
13
13
id-token : write
14
+ contents : write # required to push with GITHUB_TOKEN
15
+ env :
16
+ BRANCH : ${{ github.event.release.target_commitish }}
14
17
15
18
steps :
16
19
- uses : actions/checkout@v4
40
43
41
44
- name : Update Version
42
45
run : |
43
- sed -i '/version =/ s/= "[^"][^"]*"/ = "${{ env.RELEASE_VERSION }}"/' pyproject.toml
46
+ sed -i "/version =/ s/= \"[^\"]*\"/= \"${{ env.RELEASE_VERSION }}\"/" pyproject.toml
47
+
48
+ - name : commit version-bump
49
+ run : |
50
+ git config --local user.name "github-actions[bot]"
51
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
52
+ git add ./pyproject.toml
53
+
54
+ # Check if there are changes to commit
55
+ if ! git diff --cached --quiet; then
56
+ echo "Changes detected, committing..."
57
+ git commit -m "Update version to ${{ env.RELEASE_VERSION }}" --no-verify
58
+ else
59
+ echo "No changes to commit"
60
+ fi
61
+
62
+ - name : Push commit
63
+ # GITHUB_TOKEN is automatically provided
64
+ run : |
65
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
66
+ git push origin HEAD:$BRANCH
44
67
45
68
- name : Build a sdist and wheel
46
69
run : |
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
7
7
[project ]
8
8
name = " servicex"
9
- version = " 3.1.1-alpha.1 "
9
+ version = " 3.1.1"
10
10
description = " Python SDK and CLI Client for ServiceX"
11
11
readme = " README.md"
12
12
license = { text = " BSD-3-Clause" } # SPDX short identifier
You can’t perform that action at this time.
0 commit comments