Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Nov 19, 2024
1 parent 61e355e commit 22974eb
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,9 @@ jobs:
with:
name: dist-tarball

- name: Create a Draft Release
- name: Create a Draft Release with the tarball
uses: softprops/action-gh-release@v2
with:
files: dist.tar.gz
draft: true
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }} # Use the tag that triggered the workflow
release_name: Release ${{ github.ref_name }}
body: |
Release notes for ${{ github.ref_name }}
- Contains the build artifacts for `/3dstories`.
draft: false
prerelease: false

- name: Upload tarball to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist.tar.gz
asset_name: dist.tar.gz
asset_content_type: application/gzip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 22974eb

Please sign in to comment.