diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1588441..015d4d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,14 +125,14 @@ jobs: name: Get Release File Name & Upload URL on Widows id: get_release_info run: | - echo "upload_url=$(cat release_url/release_url.txt)" >> $env:GITHUB_OUTPUT + echo "upload_url=$(cat release_url/release_url.txt)" >> $env:GITHUB_ENV # See Note [environment variables] - if: matrix.os != 'windows-latest' name: Get Release File Name & Upload URL not on Widows id: get_release_info run: | - echo "upload_url=$(cat release_url/release_url.txt)" >> $GITHUB_OUTPUT + echo "upload_url=$(cat release_url/release_url.txt)" >> $GITHUB_ENV - name: Upload Release Asset id: upload-release-asset @@ -140,7 +140,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.get_release_info.outputs.upload_url }} + upload_url: ${{ env.upload_url }} asset_path: ${{ env.BINARY_PATH }} asset_name: stan-${{ steps.tag.outputs.tag }}-${{ runner.os }}-ghc-${{ matrix.ghc }}${{ env.EXT }} asset_content_type: application/octet-stream