From 3a919706329b04a840e3974579586ec67f7cf9b1 Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Thu, 9 Mar 2023 14:40:35 +0530 Subject: [PATCH 1/2] Add release candidate automation (#761) This is a minimal subset of release automation which only creates a tag and verifies it. Signed-off-by: Gaurav Aggarwal --- .github/workflows/release-candidate.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release-candidate.yml diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml new file mode 100644 index 0000000000..832491ce5c --- /dev/null +++ b/.github/workflows/release-candidate.yml @@ -0,0 +1,35 @@ +name: Release Candidate Automation + +on: + workflow_dispatch: + inputs: + commit_id: + description: 'Commit ID to tag' + required: true + version_number: + description: 'Release Version Number (Eg, v1.0.0-rc1)' + required: true + +jobs: + tag-commit: + name: Tag commit + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.commit_id }} + - name: Configure git identity + run: | + git config --global user.name ${{ github.actor }} + git config --global user.email ${{ github.actor }}@users.noreply.github.com + - name: Tag Commit and Push to Remote + run: | + git tag ${{ github.event.inputs.version_number }} -a -m "FreeRTOS-Plus-TCP Library ${{ github.event.inputs.version_number }}" + git push origin --tags + - name: Verify tag on remote + run: | + git tag -d ${{ github.event.inputs.version_number }} + git remote update + git checkout tags/${{ github.event.inputs.version_number }} + git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }} From 2436471e11e05e842feac41340e6fcb3bda276d2 Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Thu, 9 Mar 2023 16:08:02 +0530 Subject: [PATCH 2/2] Revert "Add release candidate automation (#761) (#762)" This reverts commit 4ed8939f06713a6b5a9bea4b69fe3f0ad0f9c2f4. --- .github/workflows/release-candidate.yml | 35 ------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/release-candidate.yml diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml deleted file mode 100644 index 832491ce5c..0000000000 --- a/.github/workflows/release-candidate.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Release Candidate Automation - -on: - workflow_dispatch: - inputs: - commit_id: - description: 'Commit ID to tag' - required: true - version_number: - description: 'Release Version Number (Eg, v1.0.0-rc1)' - required: true - -jobs: - tag-commit: - name: Tag commit - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.commit_id }} - - name: Configure git identity - run: | - git config --global user.name ${{ github.actor }} - git config --global user.email ${{ github.actor }}@users.noreply.github.com - - name: Tag Commit and Push to Remote - run: | - git tag ${{ github.event.inputs.version_number }} -a -m "FreeRTOS-Plus-TCP Library ${{ github.event.inputs.version_number }}" - git push origin --tags - - name: Verify tag on remote - run: | - git tag -d ${{ github.event.inputs.version_number }} - git remote update - git checkout tags/${{ github.event.inputs.version_number }} - git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }}