From 02a84b553375aa7ef5628255663a8e73cc8aa4b3 Mon Sep 17 00:00:00 2001 From: Manoj Kumar Cebol Sundarrajan Date: Wed, 21 Dec 2022 15:49:24 -0700 Subject: [PATCH 1/4] Revert "Fixing linux compile bug." --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5259f63..e0eafa5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.5) project(ICM) -set(CMAKE_POSITION_INDEPENDENT_CODE ON) - if (NOT DEFINED PROJECT) message(WARNING "PROJECT cmake variable not set defaulting to emosiac project") endif() From 9818bcc89c963e0900c02a559602f6b3ec7ce6b2 Mon Sep 17 00:00:00 2001 From: Manoj Kumar Cebol Sundarrajan Date: Wed, 17 Jul 2024 10:13:16 -0600 Subject: [PATCH 2/4] chore: bootstrap releases for path: . --- .release-please-manifest.json | 3 +++ release-please-config.json | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..46b1b67 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.0" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..e94a718 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "simple", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file From 3b688f98ec4d47f4eb63dcecd164aabb42e95dda Mon Sep 17 00:00:00 2001 From: Manoj Kumar Cebol Sundarrajan Date: Wed, 17 Jul 2024 09:15:48 -0700 Subject: [PATCH 3/4] setting initial version number --- .release-please-manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 46b1b67..37fcefa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.0" -} \ No newline at end of file + ".": "1.0.0" +} From 1a3916975cb11d46ab72168214dc4cbc85c568cd Mon Sep 17 00:00:00 2001 From: Manoj Kumar Cebol Sundarrajan Date: Wed, 17 Jul 2024 10:07:40 -0700 Subject: [PATCH 4/4] added release-please action --- .github/workflows/release-please-action.yml | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/release-please-action.yml diff --git a/.github/workflows/release-please-action.yml b/.github/workflows/release-please-action.yml new file mode 100644 index 0000000..5f1cdb2 --- /dev/null +++ b/.github/workflows/release-please-action.yml @@ -0,0 +1,49 @@ +name: Build and Release + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + build-release: + runs-on: ubuntu-latest + + steps: + + - name: Checkout git repo + uses: actions/checkout@v4 + + - name: release-please + id: release + uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.ACTIONS_SECRET }} + release-type: simple + target-branch: ${{ github.ref_name }} + + - name: Print release outputs for debugging + run: | + echo "Release outputs:" + echo "releases_created: ${{ steps.release.outputs.releases_created }}" + echo "major: ${{ steps.release.outputs.major }}" + echo "minor: ${{ steps.release.outputs.minor }}" + + - name: tag major and minor versions + if: ${{ steps.release.outputs.releases_created == 'true' }} + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + #git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git" + git tag -d v${{ steps.release.outputs.major }} || true + git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git push origin :v${{ steps.release.outputs.major }} || true + git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" + git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" + git push origin v${{ steps.release.outputs.major }} + git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}