From 989e7d217699c2fbb0fc5fc1f5d724c3c153d8aa Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Wed, 4 Sep 2024 12:26:08 +0300 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 931186b6..46d6dca4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,6 +1,10 @@ name: Release to NuGet on: workflow_dispatch: + inputs: + packageVersion: + required: true + type: string jobs: publish: runs-on: ubuntu-latest @@ -17,12 +21,8 @@ jobs: - name: Build run: dotnet build -c Release sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Test - run: echo "VERSION=${{ github.event.release.tag_name }}" + run: echo "VERSION=${{ github.event.inputs.packageVersion }}" - name: Create NuGet Package - run: | - TAG=${{ github.event.release.tag_name }} - echo "VERSION=${TAG#v}" >> $GITHUB_ENV - echo Version: $VERSION - dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=$VERSION + run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=${{ github.event.inputs.packageVersion }} - name: Push to NuGet run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }}