Skip to content

Commit d57cc63

Browse files
committed
chore: publish tag with release
1 parent 53b87c3 commit d57cc63

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ env:
99

1010
on:
1111
workflow_dispatch:
12-
push:
13-
tags:
14-
- '*'
1512

1613
jobs:
1714
build:
1815
name: build
1916
runs-on:
2017
ubuntu-latest
2118
permissions:
22-
contents: read
19+
contents: read
2320
strategy:
2421
matrix:
2522
config:
@@ -242,6 +239,15 @@ jobs:
242239
path: ${{ env.DIST_DIR }}
243240
merge-multiple: true
244241

242+
- name: Tag release to bind tag and commit
243+
env:
244+
TAG: ${{ env.REPO_REF }}-${{ github.run_number }}
245+
run: |
246+
git config --global user.email "arduinobot@arduino.cc"
247+
git config --global user.name "ArduinoBot"
248+
git tag ${{ env.TAG }} -m "${{ env.TAG }}"
249+
git push origin ${{ env.TAG }}
250+
245251
- name: Create Github Release and upload artifacts
246252
uses: ncipollo/release-action@v1
247253
with:

0 commit comments

Comments
 (0)