diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae651c7..b045402 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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] @@ -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 @@ -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 @@ -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