From c8f635b61e881e45a7eb3b69b55089adbf17c971 Mon Sep 17 00:00:00 2001 From: honhimW Date: Fri, 13 Sep 2024 19:23:40 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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