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