Skip to content

Commit 512d762

Browse files
authored
chore: add Release Please GHA workflow (#11)
1 parent 00f48a0 commit 512d762

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.2"
3+
}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.28)
2-
project(nbytes VERSION 0.1.2)
2+
project(nbytes VERSION 0.1.2) # x-release-please-version
33

44
set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED True)

include/nbytes.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,12 @@ size_t SearchString(const char *haystack, size_t haystack_length,
836836

837837
// ============================================================================
838838
// Version metadata
839-
#define NBYTES_VERSION "0.1.1"
839+
#define NBYTES_VERSION "0.1.2" // x-release-please-version
840840

841841
enum {
842-
NBYTES_VERSION_MAJOR = 0,
843-
NBYTES_VERSION_MINOR = 1,
844-
NBYTES_VERSION_REVISION = 1,
842+
NBYTES_VERSION_MAJOR = 0, // x-release-please-major
843+
NBYTES_VERSION_MINOR = 1, // x-release-please-minor
844+
NBYTES_VERSION_REVISION = 2, // x-release-please-patch
845845
};
846846

847847
} // namespace nbytes

release-please-config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "simple",
5+
"extra-files": [
6+
"CMakeLists.txt",
7+
"include/nbytes.h"
8+
]
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)