Skip to content

Commit

Permalink
Fixes release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
drake127 committed Sep 11, 2024
1 parent 79abf82 commit 3bc8867
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
mkdir randomrolls/tools
cp windows-artifact/cpuid-rdrand.exe randomrolls/tools/
cp windows-artifact/cpuid-rdrand.pdb randomrolls/tools/
cp README randomrolls/readme.txt
7z a randomrolls.zip randomrolls Setup-randomrolls.exe
cp README.md randomrolls/readme.txt
7z a randomrolls-win.zip randomrolls Setup-randomrolls.exe
7z a randomrolls-linux.zip ./linux-artifact/rand.so
- name: Create a release
id: create_release
Expand All @@ -43,12 +44,22 @@ jobs:
prerelease: false
commitish: master

- name: Publish artifacts
- name: Publish Linux artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: randomrolls.zip
asset_name: randomrolls.zip
asset_path: randomrolls-linux.zip
asset_name: randomrolls-linux.zip
asset_content_type: application/zip

- name: Publish Windows artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: randomrolls-win.zip
asset_name: randomrolls-win.zip
asset_content_type: application/zip

0 comments on commit 3bc8867

Please sign in to comment.