diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 883c0b7..083257a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,40 +23,12 @@ jobs: - name: Create Draft Release id: create-release if: steps.ref.outputs.is-release == 'true' - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 with: - release_name: Release ${{ steps.ref.outputs.tag }} tag_name: ${{steps.ref.outputs.tag}} + prerelease: ${{contains(github.ref_name, '-')}} draft: true - - name: Attach Release Build - if: steps.ref.outputs.is-release == 'true' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ${{runner.temp}}/artifacts/com.fredemmott.micmutetoggle.streamDeckPlugin/com.fredemmott.micmutetoggle.streamDeckPlugin - asset_name: com.fredemmott.micmutetoggle.streamDeckPlugin - asset_content_type: application/octet-stream - - name: Attach PDB Files - if: steps.ref.outputs.is-release == 'true' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ${{runner.temp}}/artifacts/DebugSymbols-windows-RelWithDebInfo/sdmicmute.pdb - asset_name: sdmicmute.pdb - asset_content_type: application/octet-stream - - name: Attach dSYM Files - if: steps.ref.outputs.is-release == 'true' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ${{runner.temp}}/artifacts/sdmicmute-lipo-dsym/sdmicmute.dSYM.zip - asset_name: sdmicmute.dSYM.zip - asset_content_type: application/octet-stream \ No newline at end of file + files: | + ${{runner.temp}}/artifacts/com.fredemmott.micmutetoggle.streamDeckPlugin/com.fredemmott.micmutetoggle.streamDeckPlugin + ${{runner.temp}}/artifacts/DebugSymbols-windows-RelWithDebInfo/sdmicmute.pdb + ${{runner.temp}}/artifacts/sdmicmute-lipo-dsym/sdmicmute.dSYM.zip \ No newline at end of file