From d57cc63f40a9386d38a7f8c34a8494ccfba5dd9a Mon Sep 17 00:00:00 2001 From: lucarin91 Date: Thu, 9 Oct 2025 12:11:05 +0200 Subject: [PATCH 1/4] chore: publish tag with release --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df10345..b5e8e1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,6 @@ env: on: workflow_dispatch: - push: - tags: - - '*' jobs: build: @@ -19,7 +16,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read + contents: read strategy: matrix: config: @@ -242,6 +239,15 @@ jobs: path: ${{ env.DIST_DIR }} merge-multiple: true + - name: Tag release to bind tag and commit + env: + TAG: ${{ env.REPO_REF }}-${{ github.run_number }} + run: | + git config --global user.email "arduinobot@arduino.cc" + git config --global user.name "ArduinoBot" + git tag ${{ env.TAG }} -m "${{ env.TAG }}" + git push origin ${{ env.TAG }} + - name: Create Github Release and upload artifacts uses: ncipollo/release-action@v1 with: From 02206dd78d5678f583f06dc123e21833978dee6d Mon Sep 17 00:00:00 2001 From: lucarin91 Date: Thu, 9 Oct 2025 12:23:14 +0200 Subject: [PATCH 2/4] add git checkout --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5e8e1d..aa9a8f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -239,7 +239,11 @@ jobs: path: ${{ env.DIST_DIR }} merge-multiple: true - - name: Tag release to bind tag and commit + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Create a tag for the release env: TAG: ${{ env.REPO_REF }}-${{ github.run_number }} run: | From 08b17760a96234b87f6220e519990956d4a50738 Mon Sep 17 00:00:00 2001 From: lucarin91 Date: Thu, 9 Oct 2025 12:44:33 +0200 Subject: [PATCH 3/4] fix release action config --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa9a8f7..750263e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -257,4 +257,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} draft: false + prerelease: true artifacts: "${{ env.DIST_DIR }}/*" + tag: ${{ env.REPO_REF }}-${{ github.run_number }} + From 21351e65673b58d72f68a851aed1ac229fabfdd9 Mon Sep 17 00:00:00 2001 From: lucarin91 Date: Thu, 9 Oct 2025 12:57:32 +0200 Subject: [PATCH 4/4] change artifact download order --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 750263e..e69c36d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -232,6 +232,11 @@ jobs: permissions: contents: write steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Download artifact uses: actions/download-artifact@v4 with: @@ -239,10 +244,6 @@ jobs: path: ${{ env.DIST_DIR }} merge-multiple: true - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Create a tag for the release env: TAG: ${{ env.REPO_REF }}-${{ github.run_number }}