Skip to content

Commit

Permalink
Added Release-support
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-andersson-at-westermo authored Mar 11, 2024
1 parent eea4a0a commit 79a546f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,23 @@ jobs:
if-no-files-found: error
retention-days: 1
path: ${{ env.NuGetDirectory }}/*.nupkg

deploy:
if: github.event_name = 'release'
runs-on: ubuntu-latest
needs: [ pack ]
steps:
- uses: actions/download-artifact@v4
with:
name: nuget-packages
path: ${{ env.NuGetDirectory }}
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
- name: Publish Nuget packages
run: |
for file in $(find "${{ env.NuGetDirectory }}" -type f -name "*.nupkg"); do
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
done

0 comments on commit 79a546f

Please sign in to comment.