Skip to content

Commit 70b70ba

Browse files
committed
the last run with {{ github.job }} was == "linux". I need something that changes every time. Let's try {{ github.run_id }}. Also fixing this issue. I guess the path isn't a dir; it's the soure file name.
##[error]EISDIR: illegal operation on a directory, read
1 parent 18477e7 commit 70b70ba

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.job }}.tar.bz2 dist/*'
30+
run: 'tar -czvf helloWorld-linux-x86_64.${{ github.run_id }}.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.job }}
40-
release_name: Public Build Artifact ${{ github.job }}
39+
tag_name: ${{ github.run_id }}
40+
release_name: Public Build Artifact ${{ github.run_id }}
4141
draft: false
4242
prerelease: true
4343

@@ -48,7 +48,7 @@ jobs:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
51-
asset_path: ./
51+
asset_path: helloWorld-linux-x86_64.${{ github.job }}.tar.bz2
5252
asset_name: helloWorld-linux-x86_64.${{ github.job }}.tar.bz2
5353
asset_content_type: application/x-bzip2
5454

0 commit comments

Comments
 (0)