From 317c049a1fac7805d9234d348573869d9034bab8 Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Wed, 30 Aug 2023 17:12:16 +0200 Subject: [PATCH] Use the GitHub CLI to create a release --- .github/workflows/release.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbb3871..7ea8b6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,21 +27,6 @@ jobs: tar czf RoboViz.tar.gz bin/ - name: Create Release id: create-release - uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. - asset_path: ./RoboViz.tar.gz - asset_name: RoboViz.tar.gz - asset_content_type: application/tar+gzip + run: gh release create ${{ github.ref }} --title ${{ github.ref }} ./RoboViz.tar.gz