Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ipvalverde authored Jul 12, 2024
1 parent d397524 commit c5bcdc9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Extract release details
id: extract_release_details
run: |
echo "RELEASE_TAG=$(echo ${{ github.event.release.tag_name }})" >> $GITHUB_ENV
echo "RELEASE_NOTES=$(echo ${{ github.event.release.body }} | jq -Rr '@uri')" >> $GITHUB_ENV
echo "IS_PRE_RELEASE=$(echo ${{ github.event.release.prerelease }})" >> $GITHUB_ENV
- name: Build and publish
shell: pwsh
run: ./build.ps1 ${{ github.event.release.tag_name }} ${{ github.event.release.description }} ${{ github.event.release.is_pre_release }}
run: ./build.ps1 ${{ env.RELEASE_TAG }} ${{ env.RELEASE_NOTES }} ${{ env.IS_PRE_RELEASE }}
env:
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} # Replace with your NuGet source (public or private)
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} # Replace with your NuGet API key (stored as secret)

0 comments on commit c5bcdc9

Please sign in to comment.