diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e49844c..f9ae8ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ env: PACKAGE_NAME: "ansys.api.additive" DEFINITION_VERSION: "v0" DOTNET_VERSION: "6.0.x" + GITHUB_NUGET_REPO: "https://nuget.pkg.github.com/ansys-internal/index.json" jobs: build: @@ -72,7 +73,7 @@ jobs: # Publish - name: Build nuget package run: | - dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ansys-internal/index.json" + dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ env.GITHUB_NUGET_REPO }}" version=$(find . -name VERSION -exec cat "{}" \;) rm -rf nuget_package dotnet pack csharp/Ansys.Api.Additive.csproj -c Release -o nuget_package -p:Version=${version} @@ -147,4 +148,5 @@ jobs: - name: Publish nuget package run: | + dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ env.GITHUB_NUGET_REPO }}" dotnet nuget push ./**/*.nupkg --source github diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index b966e81..3a1f10e 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -1.2.4 \ No newline at end of file +1.2.5 \ No newline at end of file