Skip to content

Commit

Permalink
Release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CheneyYin committed Jul 4, 2023
1 parent c709aea commit fc57741
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,23 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false


- name: Package Tag
id: package_tag
env:
TAG: "${{ github.ref }}"
run: |
echo PKG_TAG=${TAG#refs/tags/v} >> $GITHUB_ENV
- 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`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./metal-dist/target/metal-dist-*-bin.tar.gz
asset_name: metal-${{ github.ref }}-bin.tar.gz
asset_path: ./metal-dist/target/metal-dist-${{ env.PKG_TAG }}-bin.tar.gz
asset_name: metal-${{ env.PKG_TAG }}-bin.tar.gz
asset_content_type: application/tar.gz


0 comments on commit fc57741

Please sign in to comment.