From 3bc886754ccd11ad903b72e05703a2f357632297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Kom=C3=ADnek?= Date: Wed, 11 Sep 2024 12:36:35 +0200 Subject: [PATCH] Fixes release flow --- .github/workflows/release.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71c06d0..bdc3912 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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