Skip to content

Commit 3ead263

Browse files
tarek-bochkatiborneoa
authored andcommitted
github: fix github wokflow while pushing a tag
this fix permits to add correctly the generated artifact (windows binaries) into the release section. Change-Id: Ia982370d3a1e08c623ebcabb5ac97e9fb49d00e0 Signed-off-by: Tarek BOCHKATI <[email protected]> Reviewed-on: http://openocd.zylin.com/6047 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent 427552c commit 3ead263

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/snapshot.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,24 @@ jobs:
8585
with:
8686
name: ${{ env.ARTIFACT_NAME }}
8787
path: ${{ env.ARTIFACT_PATH }}
88-
- name: Get the upload URL for a release
89-
id: get_release
88+
- name: Create Release
89+
id: create_release
9090
if: startsWith(github.ref, 'refs/tags/')
91-
uses: bruceadams/get-release@v1.2.0
91+
uses: actions/create-release@v1.1.4
9292
env:
93-
GITHUB_TOKEN: ${{ github.token }}
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
with:
95+
tag_name: ${{ github.ref }}
96+
release_name: ${{ github.ref }}
97+
draft: false
98+
prerelease: false
9499
- name: Release OpenOCD packaged for windows
95100
if: startsWith(github.ref, 'refs/tags/')
96101
uses: actions/upload-release-asset@v1
97102
env:
98103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99104
with:
100-
upload_url: ${{ steps.get_release.outputs.upload_url }}
105+
upload_url: ${{ steps.create_release.outputs.upload_url }}
101106
asset_path: ${{ env.ARTIFACT_PATH }}
102107
asset_name: ${{ env.ARTIFACT_NAME }}
103108
asset_content_type: application/gzip

0 commit comments

Comments
 (0)