Skip to content

Commit

Permalink
Fix in pack.yml: Take outputs from previous job.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jan 19, 2024
1 parent ad4f03f commit c59852a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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 }}

Expand Down

0 comments on commit c59852a

Please sign in to comment.