diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index f1bc75d272..3bb429a4e1 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -49,6 +49,10 @@ jobs: draft-release: needs: [ pack ] runs-on: ubuntu-latest + + outputs: + releaseUploadUrl: ${{ steps.create_release.outputs.upload_url }} + releaseUploadId: ${{ steps.create_release.outputs.id }} steps: @@ -75,13 +79,13 @@ jobs: - uses: shogo82148/actions-upload-release-asset@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ needs.draft-release.outputs.releaseUploadUrl }} asset_path: '**/${{ github.event.repository.name }}.*.nupkg' github_token: ${{ secrets.CREATE_RELEASE_PAT }} - uses: eregon/publish-release@v1 with: - release_id: ${{ steps.create_release.outputs.id }} + release_id: ${{ needs.draft-release.outputs.releaseUploadId }} env: GITHUB_TOKEN: ${{ secrets.CREATE_RELEASE_PAT }}