Skip to content

Commit 1ab4410

Browse files
committed
trying to get releases to work
1 parent 1a50c72 commit 1ab4410

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
path: dist/
2828

2929
- name: Create dist tarball
30-
run: 'tar -czvf helloWorld-linux-x86_64.`date "+%Y%m%d_%H%M%S"`.tar.bz2 dist/*'
30+
run: 'tar -czvf helloWorld-linux-x86_64.${{ github.sha }}.tar.bz2 dist/*'
3131
shell: bash
3232

3333
- name: Create Release
@@ -36,8 +36,8 @@ jobs:
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
with:
39-
tag_name: ${{ github.ref }}
40-
release_name: Public Build Artifact ${{ github.ref }}
39+
tag_name: ${{ github.sha }}
40+
release_name: Public Build Artifact ${{ github.sha }}
4141
draft: false
4242
prerelease: true
4343

@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
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
5151
asset_path: ./
52-
asset_name: helloWorld-linux*.tar.bz2
52+
asset_name: helloWorld-linux-x86_64.${{ github.sha }}.tar.bz2
5353
asset_content_type: application/x-bzip2
5454

5555
# windows:

0 commit comments

Comments
 (0)