From cc95f97eb42fd70f576fe1e15e2750108071c6be Mon Sep 17 00:00:00 2001 From: Stephen Johnson Date: Fri, 15 Sep 2023 11:07:45 -0500 Subject: [PATCH] Updated version number for each push. --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d856cdc..79fdf07 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,11 +27,11 @@ jobs: - name: Pack Nuget Package if: ${{ matrix.os == 'ubuntu-latest' }} working-directory: ./Src/CommandLine - run: dotnet pack CommandLine.csproj -c Release -p:PackageVersion="1.0.${{ GITHUB_ACTION }}" /p:Platform=x64 + run: dotnet pack CommandLine.csproj -c Release -p:PackageVersion="1.0.$GITHUB_RUN_ID" /p:Platform=x64 - name: Publish Nuget Package if: ${{ matrix.os == 'ubuntu-latest' }} working-directory: ./nupkg - run: dotnet nuget push VUISIS.Formula.x64.1.0.${{ GITHUB_ACTION }}.nupkg --api-key ${{ secrets.BUILD_SECRET }} --source https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push VUISIS.Formula.x64.1.0.$GITHUB_RUN_ID.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