Skip to content

Commit

Permalink
[build] update nuget deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu6is committed Apr 3, 2024
1 parent 4309ce6 commit 71a1ba2
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/deploy-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,7 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore

jobs:
get-version:
name: Get version to deploy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -71,3 +57,6 @@ jobs:
- name: Publish nuget package
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./src
- name: Push nuget generated package symbols
run: dotnet nuget push nupkgs/*.snupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./src

0 comments on commit 71a1ba2

Please sign in to comment.