File tree Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/bump-version.yml
12name : Bump Version on Merge to Main
2-
3+
34on :
45 push :
56 branches :
@@ -13,37 +14,26 @@ jobs:
1314 id-token : write
1415
1516 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v4
17+ - uses : actions/checkout@v4
1818 with :
19- fetch-depth : 0
19+ fetch-depth : 0 # Fetch all history for all branches and tags
2020
21- - name : Set up Python
22- uses : actions/setup-python@v5
21+ - uses : actions/setup-python@v5
2322 with :
2423 python-version : " 3.11"
2524
26- - name : Install Poetry
27- run : |
28- curl -sSL https://install.python-poetry.org | python3 -
29- echo "$HOME/.local/bin" >> $GITHUB_PATH
30-
31- - name : Install dependencies
32- run : |
33- poetry install
34- poetry add --group dev python-semantic-release
25+ - run : pip install python-semantic-release
3526
36- - name : Configure Git user
27+ - name : Configure Git
3728 run : |
3829 git config user.name "github-actions[bot]"
3930 git config user.email "github-actions[bot]@users.noreply.github.com"
4031
4132 - name : Run Semantic Release
4233 env :
4334 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- run : poetry run semantic-release publish
35+ run : semantic-release version
4536
46- - name : Push version bump commit and tags
37+ - name : Push changes
4738 run : |
48- git pull --ff-only origin main
49- git push origin main --follow-tags
39+ git push --follow-tags
You can’t perform that action at this time.
0 commit comments