File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 99
1010on :
1111 workflow_dispatch :
12- push :
13- tags :
14- - ' *'
1512
1613jobs :
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 :
@@ -235,16 +232,33 @@ jobs:
235232 permissions :
236233 contents : write
237234 steps :
235+ - name : Checkout repository
236+ uses : actions/checkout@v4
237+ with :
238+ fetch-depth : 0
239+
238240 - name : Download artifact
239241 uses : actions/download-artifact@v4
240242 with :
241243 pattern : ${{ env.ARTIFACT_NAME }}*
242244 path : ${{ env.DIST_DIR }}
243245 merge-multiple : true
244246
247+ - name : Create a tag for the release
248+ env :
249+ TAG : ${{ env.REPO_REF }}-${{ github.run_number }}
250+ run : |
251+ git config user.name "Arduino Actions Bot"
252+ git config user.email "bot@arduino.cc"
253+ git tag ${{ env.TAG }} -m "${{ env.TAG }}"
254+ git push origin ${{ env.TAG }}
255+
245256 - name : Create Github Release and upload artifacts
246257 uses : ncipollo/release-action@v1
247258 with :
248259 token : ${{ secrets.GITHUB_TOKEN }}
249260 draft : false
261+ prerelease : true
250262 artifacts : " ${{ env.DIST_DIR }}/*"
263+ tag : ${{ env.REPO_REF }}-${{ github.run_number }}
264+
You can’t perform that action at this time.
0 commit comments