File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3636 steps :
3737 - name : Checkout repository
3838 uses : actions/checkout@v6
39+ with :
40+ fetch-depth : 1
3941
4042 # Initializes the CodeQL tools for scanning.
4143 - name : Initialize CodeQL
Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8+
89jobs :
910 release :
1011 runs-on : ubuntu-latest
11- permissions :
12+ permissions :
1213 contents : write
1314 steps :
1415 - name : Checkout code
1516 uses : actions/checkout@v6
1617 with :
17- fetch-depth : 0
18+ fetch-depth : 1
1819 token : ${{ secrets.ADMIN_TOKEN }}
1920
20- - name : setup nodejs
21+ - name : Setup Node.js
2122 uses : actions/setup-node@v6
2223 with :
2324 node-version : ' 24'
2425
25- - name : release using semantic-release
26+ - name : Setup Python
27+ uses : actions/setup-python@v6
28+ with :
29+ python-version : ' 3.9'
30+
31+ - name : Install dependencies
32+ run : |
33+ pip install --user bump-my-version
34+ npm install
35+
36+ - name : Release using semantic-release
2637 env :
2738 GITHUB_TOKEN : ${{ secrets.ADMIN_TOKEN }}
2839 GIT_AUTHOR_NAME : secrets.automation.dev
2940 GIT_AUTHOR_EMAIL : secrets.automation.dev@il.ibm.com
3041 GIT_COMMITTER_NAME : secrets.automation.dev
3142 GIT_COMMITTER_EMAIL : secrets.automation.dev@il.ibm.com
32- run : |
33- sudo apt-get update
34- sudo apt-get install python3
35- pip install --user bumpversion
36- npm install @semantic-release/changelog
37- npm install @semantic-release/exec
38- npm install @semantic-release/git
39- npm install @semantic-release/github
40- npm install @semantic-release/release-notes-generator -D
41- npx semantic-release
43+ run : npx semantic-release
Original file line number Diff line number Diff line change 1- name : publish artifact
1+ name : Publish artifact
2+
23on :
34 workflow_dispatch :
45 release :
@@ -10,20 +11,26 @@ jobs:
1011 permissions :
1112 contents : read
1213 steps :
13- - uses : actions/checkout@v6
14+ - name : Checkout code
15+ uses : actions/checkout@v6
1416 with :
17+ fetch-depth : 1
1518 token : ${{ secrets.ADMIN_TOKEN }}
16- - name : Set up Python 3.9
19+
20+ - name : Set up Python
1721 uses : actions/setup-python@v6
1822 with :
19- python-version : 3.14
23+ python-version : ' 3.9'
24+
2025 - name : Install build dependencies
2126 run : |
2227 python -m pip install --upgrade pip
2328 python -m pip install hatchling build --user
24- - name : Build a binary wheel and a source tarball
29+
30+ - name : Build distribution
2531 run : |
2632 python -m build --sdist --wheel --outdir dist/ .
33+
2734 - name : Publish distribution to PyPI
2835 uses : pypa/gh-action-pypi-publish@release/v1
2936 with :
Original file line number Diff line number Diff line change 1111 {"type": "patch","release": "patch"}
1212 ]}],
1313 "@semantic-release/release-notes-generator",
14- "@semantic-release/changelog",
1514 [
1615 "@semantic-release/exec",
1716 {
18- "prepareCmd": "bump2version --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
17+ "verifyReleaseCmd": "echo \"Verifying release ${nextRelease.version}\"",
18+ "prepareCmd": "bump-my-version bump ${nextRelease.type} --allow-dirty --new-version ${nextRelease.version}"
1919 }
2020 ],
2121 [
2222 "@semantic-release/git",
2323 {
24- "message": "chore(release): ${nextRelease.version} [skip ci] release notes\n\n${nextRelease.notes}"
24+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
25+ "assets": ["pyproject.toml", "ibm_secrets_manager_sdk/version.py"]
2526 }
2627 ],
27- "@semantic-release/github"
28+ [
29+ "@semantic-release/github",
30+ {
31+ "successComment": false,
32+ "failComment": false,
33+ "releasedLabels": false
34+ }
35+ ]
2836 ]
2937}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "devDependencies" : {
3- "@semantic-release/changelog" : " ^6.0.3" ,
43 "@semantic-release/exec" : " ^7.1.0" ,
54 "@semantic-release/git" : " ^10.0.1" ,
65 "@semantic-release/github" : " ^12.0.6" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ dependencies = [
3434Repository = " https://github.com/IBM/secrets-manager-python-sdk"
3535Documentation = " https://cloud.ibm.com/apidocs/secrets-manager"
3636Issues = " https://github.com/IBM/secrets-manager-python-sdk/issues"
37- Changelog = " https://github.com/IBM/secrets-manager-python-sdk/blob/main/CHANGELOG.md"
3837
3938[project .optional-dependencies ]
4039dev = [
@@ -57,3 +56,18 @@ packages = ["ibm_secrets_manager_sdk"]
5756[tool .black ]
5857line-length = 120
5958skip-string-normalization = true
59+
60+ [tool .bumpversion ]
61+ current_version = " 2.1.19"
62+ commit = true
63+ message = " Update version {current_version} -> {new_version}"
64+
65+ [[tool .bumpversion .files ]]
66+ filename = " ibm_secrets_manager_sdk/version.py"
67+ search = " __version__ = '{current_version}'"
68+ replace = " __version__ = '{new_version}'"
69+
70+ [[tool .bumpversion .files ]]
71+ filename = " pyproject.toml"
72+ search = " version = \" {current_version}\" "
73+ replace = " version = \" {new_version}\" "
You can’t perform that action at this time.
0 commit comments