Skip to content

Commit 18477e7

Browse files
committed
apparently the sha isn't the short version and it was too long
##[error]Validation Failed: {"resource":"Release","code":"custom","field":"pre_receive","message":"pre_receive Sorry, branch or tag names consisting of 40 hex characters are not allowed."}, {"resource":"Release","code":"custom","message":"Published releases must have a valid tag"}
1 parent 1ab4410 commit 18477e7

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.${{ github.sha }}.tar.bz2 dist/*'
30+
run: 'tar -czvf helloWorld-linux-x86_64.${{ github.job }}.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.sha }}
40-
release_name: Public Build Artifact ${{ github.sha }}
39+
tag_name: ${{ github.job }}
40+
release_name: Public Build Artifact ${{ github.job }}
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-x86_64.${{ github.sha }}.tar.bz2
52+
asset_name: helloWorld-linux-x86_64.${{ github.job }}.tar.bz2
5353
asset_content_type: application/x-bzip2
5454

5555
# windows:

0 commit comments

Comments
 (0)