Skip to content

Commit

Permalink
Try switching to softprops/action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jan 1, 2024
1 parent 0560ffb commit b4c9f5a
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit b4c9f5a

Please sign in to comment.