Skip to content

Commit 2ef547c

Browse files
committed
Make: Log next version in CI
1 parent 239e79b commit 2ef547c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/prerelease.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,30 @@ permissions:
1818
contents: read
1919

2020
jobs:
21+
versioning:
22+
runs-on: ubuntu-latest
23+
name: Update Version
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
persist-credentials: false
30+
- name: Run TinySemVer
31+
uses: ashvardanian/[email protected]
32+
with:
33+
verbose: "true"
34+
version-file: "VERSION"
35+
update-version-in: 'pyproject.toml,^version = "(\d+\.\d+\.\d+)"'
36+
update-version-in: 'Cargo.toml,^version = "(\d+\.\d+\.\d+)"'
37+
update-version-in: 'package.json,"version": "(\d+\.\d+\.\d+)"'
38+
update-version-in: 'CITATION.cff,^version: (\d+\.\d+\.\d+)'
39+
update-version-in: 'CMakeLists.txt,VERSION (\d+\.\d+\.\d+)'
40+
update-major-version-in: 'include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_MAJOR (\d+)'
41+
update-minor-version-in: 'include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_MINOR (\d+)'
42+
update-patch-version-in: 'include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_PATCH (\d+)'
43+
dry-run: "true"
44+
2145
test_ubuntu_gcc:
2246
name: Ubuntu (GCC 12)
2347
runs-on: ubuntu-22.04
@@ -230,7 +254,7 @@ jobs:
230254
wget https://apt.llvm.org/llvm.sh
231255
chmod +x llvm.sh
232256
sudo ./llvm.sh 16
233-
257+
234258
- name: Build C/C++
235259
run: |
236260
cmake -B build_artifacts \

0 commit comments

Comments
 (0)