Skip to content

Commit

Permalink
add nuget push for macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
VeraZhang0311 committed May 29, 2024
1 parent d5b1460 commit e69705b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,22 @@ jobs:
- name: Build
working-directory: ./Src/CommandLine
run: dotnet build CommandLine.sln /p:Configuration=Release /p:Platform=x64
- name: Pack Nuget Package
- name: Pack Nuget Package (ubuntu)
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
- name: Pack Nuget Package (macOS)
if: matrix.os == 'macOS-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 (ubuntu)
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: Publish Nuget Package (macOS)
if: matrix.os == 'macOS-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
if: ${{ matrix.os == 'macOS-latest' }}
run: cp ${GITHUB_WORKSPACE}/Src/CommandLine/bin/Release/MacOS/x64/net6.0/runtimes/osx-x64/native/libz3.dylib ${GITHUB_WORKSPACE}/Src/CommandLine/bin/Release/MacOS/x64/net6.0/runtimes/osx-x64/native/liblibz3.dylib
Expand Down

0 comments on commit e69705b

Please sign in to comment.