Skip to content

Commit

Permalink
Added pushing to nuget only on master.
Browse files Browse the repository at this point in the history
  • Loading branch information
saj122 committed Feb 5, 2024
1 parent 9c2313b commit c20ac7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
working-directory: ./Src/CommandLine
run: dotnet build CommandLine.sln /p:Configuration=Release /p:Platform=x64
- name: Pack Nuget Package
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' && (github.ref_name == 'master') }}
working-directory: ./Src/CommandLine
run: dotnet pack CommandLine.csproj -c Release -p:PackageVersion="1.0.${{ github.run_number }}" /p:Platform=x64
- name: Publish Nuget Package
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ (matrix.os == 'ubuntu-latest') && (github.ref_name == 'master') }}
working-directory: ./nupkg
run: dotnet nuget push VUISIS.Formula.x64.1.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.BUILD_SECRET }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Copy to Liblibz3 MacOS
Expand Down

0 comments on commit c20ac7b

Please sign in to comment.