Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
honhimW authored Sep 13, 2024
1 parent c6eb0db commit c8f635b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Set output
run: echo "::set-output name=upload_url::${{ steps.create_release.outputs.upload_url }}"
id: set_output

build:
runs-on: ${{ matrix.os }}
needs: create_release
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -39,7 +43,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./target/release/ratisui
asset_name: ratisui-linux
asset_content_type: application/octet-stream
Expand All @@ -49,7 +53,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./target/release/ratisui
asset_name: ratisui-mac
asset_content_type: application/octet-stream
Expand All @@ -59,7 +63,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: .\target\release\ratisui.exe
asset_name: ratisui.exe
asset_content_type: application/octet-stream

0 comments on commit c8f635b

Please sign in to comment.