Skip to content

Commit d9cc51d

Browse files
authored
Update build.yml workflow
1 parent caf588f commit d9cc51d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
build:
11+
name: Build
1112
# The CMake configure and build commands are platform agnostic and should work equally
1213
# well on Windows or Mac. You can convert this to a matrix build if you need
1314
# cross-platform coverage.
@@ -37,4 +38,25 @@ jobs:
3738
shell: bash
3839
run: bash ./execute_tests.sh
3940
# run: ctest -C ${{env.BUILD_TYPE}}
41+
bump-version-and-push-tag:
42+
name: Bump version
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Checkout
47+
# Step 1: Checkout the repository with full history for tagging
48+
uses: actions/checkout@v4
49+
with:
50+
fetch-depth: 0 # Fetch the full commit history to ensure proper tagging
51+
52+
# Step 2: Bump version and create a tag
53+
# https://github.com/marketplace/actions/github-tag-bump
54+
- name: Create Tag
55+
uses: anothrNick/github-tag-action@v1
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.MERGE_HOT_FIX_SECRET }}
58+
WITH_V: true
59+
PRERELEASE: false
60+
DEFAULT_BUMP: patch
61+
4062

0 commit comments

Comments
 (0)