From f8bd631c4d586e0d1a91a618e973520453faf218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 19 Nov 2020 13:19:39 -0800 Subject: [PATCH] Use get_release --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b55164..a764d83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,13 +94,19 @@ jobs: OPSCORE_DIR: ${{github.workspace}}/../opscore ACTORKEYS_DIR: ${{github.workspace}}/../actorkeys + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.2.2 + env: + GITHUB_TOKEN: ${{ github.token }} + - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: https://github.com/ApachePointObservatory/stui/releases/tag/refs/tags/${{ steps.tagName.outputs.tag }} + upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: /Users/runner/STUI_${{ steps.tagName.outputs.tag }}_Source/BuildForMac/dist/STUI_${{ steps.tagName.outputs.tag }}_Mac.dmg asset_name: STUI_${{ steps.tagName.outputs.tag }}_${{ matrix.os }}.dmg asset_content_type: application/octet-stream