Skip to content

Commit

Permalink
Merge pull request #24 from siemens/prasenjeetnath-patch-2
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
prasenjeetnath committed Nov 24, 2023
2 parents cee0d3e + 1d00949 commit edb90a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
#tag_name: v$($env:GitVersion_MajorMinorPatch)
tag_name: ${{ needs.build.outputs.semver }}
tag_name: v${{ needs.build.outputs.semver }}
release_name: Release v${{ needs.build.outputs.semver }}
body: |
${{ github.event.head_commit.message }}
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
working-directory: .

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download NuGet Packages from Release
run: |
Write-Host "GITHUB_REF: '$($env:GITHUB_REF)'"
Expand All @@ -34,7 +29,9 @@ jobs:

- name: Publish to github packages
run: |
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://api.nuget.org/v3/index.json"
dotnet nuget add source --username ${{ secrets.USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/SIEMENS/index.json"
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source github
env:
USERNAME: ${{ secrets.USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit edb90a7

Please sign in to comment.