This is an automated email from Gerrit.

Tarek BOCHKATI (tarek.bouchk...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/6047

-- gerrit

commit 079a2bb882ba198b7e76b63f6f12526612d910d9
Author: Tarek BOCHKATI <tarek.bouchk...@gmail.com>
Date:   Mon Feb 1 00:18:14 2021 +0100

    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 <tarek.bouchk...@gmail.com>

diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
index e9a95ff..9566c80 100644
--- a/.github/workflows/snapshot.yml
+++ b/.github/workflows/snapshot.yml
@@ -85,19 +85,23 @@ jobs:
         with:
           name: ${{ env.ARTIFACT_NAME }}
           path: ${{ env.ARTIFACT_PATH }}
-      - name: Get the upload URL for a release
-        id: get_release
-        if: startsWith(github.ref, 'refs/tags/')
-        uses: bruceadams/get-release@v1.2.0
+      - name: Create Release
+        id: create_release
+        uses: actions/create-release@v1.1.4
         env:
-          GITHUB_TOKEN: ${{ github.token }}
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          tag_name: ${{ github.ref }}
+          release_name: ${{ github.ref }}
+          draft: false
+          prerelease: false
       - name: Release OpenOCD packaged for windows
         if: startsWith(github.ref, 'refs/tags/')
         uses: actions/upload-release-asset@v1
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
-          upload_url: ${{ steps.get_release.outputs.upload_url }}
+          upload_url: ${{ steps.create_release.outputs.upload_url }}
           asset_path: ${{ env.ARTIFACT_PATH }}
           asset_name: ${{ env.ARTIFACT_NAME }}
           asset_content_type: application/gzip

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to