From 57151a91f1ec3a2fffce39dbce9ddfda69001993 Mon Sep 17 00:00:00 2001 From: m-brl <103381146+m-brl@users.noreply.github.com> Date: Sat, 13 Jun 2026 15:27:25 +0200 Subject: [PATCH 1/3] feat(ci/cd): add release action Signed-off-by: m-brl <103381146+m-brl@users.noreply.github.com> --- .github/workflows/release.yml | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d4b56ad --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,58 @@ +name: Create release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version number' + required: true + type: string + +permissions: + contents: write + pull-requests: write + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: dev + fetch-depth: 0 + + - name: Configure Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Create Release Branch + run: | + git checkout -b release/${{ inputs.version }} + + echo "${{ inputs.version }}" > version.txt + + git add version.txt + git commit -m "Migrating to ${{ inputs.version }}" + git push origin release/${{ inputs.version }} + + - name: Create PR to Master + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr create \ + --title "Release ${{ inputs.version }} -> Master" \ + --body "Merge release ${{ inputs.version }} to master." \ + --base master \ + --head release/${{ inputs.version }} + + - name: Create PR to Develop + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr create \ + --title "Release ${{ inputs.version }} -> Dev" \ + --body "Merge release ${{ inputs.version }} to dev." \ + --base dev \ + --head release/${{ inputs.version }} From 9d33797b7b563ed600da04995515f168a6d5a252 Mon Sep 17 00:00:00 2001 From: m-brl <103381146+m-brl@users.noreply.github.com> Date: Sun, 14 Jun 2026 09:02:14 +0200 Subject: [PATCH 2/3] evol(release CI): centralise CI release pipeline Signed-off-by: m-brl <103381146+m-brl@users.noreply.github.com> --- .github/workflows/release.yml | 50 +++-------------------------------- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4b56ad..b43f931 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Create release +name: Trigger Release on: workflow_dispatch: @@ -8,51 +8,9 @@ on: required: true type: string -permissions: - contents: write - pull-requests: write - jobs: create-release: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: dev - fetch-depth: 0 - - - name: Configure Git - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - - - name: Create Release Branch - run: | - git checkout -b release/${{ inputs.version }} - - echo "${{ inputs.version }}" > version.txt - - git add version.txt - git commit -m "Migrating to ${{ inputs.version }}" - git push origin release/${{ inputs.version }} - - - name: Create PR to Master - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr create \ - --title "Release ${{ inputs.version }} -> Master" \ - --body "Merge release ${{ inputs.version }} to master." \ - --base master \ - --head release/${{ inputs.version }} + uses: Sentience-Robotics/.github/.github/workflows/release.yaml@master + with: + version: ${{ inputs.version }} - - name: Create PR to Develop - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr create \ - --title "Release ${{ inputs.version }} -> Dev" \ - --body "Merge release ${{ inputs.version }} to dev." \ - --base dev \ - --head release/${{ inputs.version }} From 2ef7e7b3436cc8f80d2a96b7ad0d9edce684047e Mon Sep 17 00:00:00 2001 From: m-brl <103381146+m-brl@users.noreply.github.com> Date: Sun, 14 Jun 2026 09:47:45 +0200 Subject: [PATCH 3/3] Migrating to v0.1 Signed-off-by: m-brl <103381146+m-brl@users.noreply.github.com> --- version.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 version.txt diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..085135e --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +v0.1