Skip to content

Commit

Permalink
Use the GitHub CLI to create a release
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Aug 30, 2023
1 parent 795b30b commit 317c049
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 317c049

Please sign in to comment.