From 4f6a5b6dc37c88e37da204e95b0bd8d985a2355a Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:02:26 +0300 Subject: [PATCH 1/9] Create dotnet.yml --- .github/workflows/dotnet.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..dadc9b9 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,36 @@ +name: Release to NuGet +on: + workflow_dispatch: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] +jobs: + publish: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore dotnet restore .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + - name: Build + run: dotnet build -c Release .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + - name: Test + run: dotnet test -c Release --no-build .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + - name: Create NuGet Package + run: > + dotnet pack -c Release --no-build .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + -o output + -p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0 + -p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }} + -p:InformationalVersion=${{ steps.gitversion.outputs.version }} + -p:PackageVersion=${{ steps.gitversion.outputs.version }} + - name: Display Output + run: dir output + - name: Push to NuGet + run: dotnet nuget push output/org.ohdsi.cdm.framework.${{ steps.gitversion.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} From e8e82897ad11d16801a5e9658d6791a0dba362ad Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:13:59 +0300 Subject: [PATCH 2/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index dadc9b9..bdbee0d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore dotnet restore .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + run: dotnet restore dotnet restore sources/Framework/org.ohdsi.cdm.framework - name: Build run: dotnet build -c Release .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj - name: Test From e03bfac3cb0f0ba7e99cb7b3b9ffc00012b0505e Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:24:56 +0300 Subject: [PATCH 3/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bdbee0d..0753e7c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,7 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore dotnet restore sources/Framework/org.ohdsi.cdm.framework + run: dotnet restore .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj - name: Build run: dotnet build -c Release .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj - name: Test From 245ee74f43b780d0922e91690a84a772519b91fe Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:32:45 +0300 Subject: [PATCH 4/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0753e7c..cc62927 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,14 +17,14 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + run: dotnet restore sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Build - run: dotnet build -c Release .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + run: dotnet build -c Release sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Test - run: dotnet test -c Release --no-build .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + run: dotnet test -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Create NuGet Package run: > - dotnet pack -c Release --no-build .\sources\Framework\org.ohdsi.cdm.framework\org.ohdsi.cdm.framework.csproj + dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -o output -p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0 -p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }} From 6f73247d7fc23213bb6f768b9ad8cc169157dd1f Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:41:56 +0300 Subject: [PATCH 5/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index cc62927..1b4cccd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,13 +23,7 @@ jobs: - name: Test run: dotnet test -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Create NuGet Package - run: > - dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - -o output - -p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0 - -p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }} - -p:InformationalVersion=${{ steps.gitversion.outputs.version }} - -p:PackageVersion=${{ steps.gitversion.outputs.version }} + run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -o output - name: Display Output run: dir output - name: Push to NuGet From 11e78313fbc2a50bed8d74fc385c3e73e68d5985 Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:46:33 +0300 Subject: [PATCH 6/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1b4cccd..4f715eb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,4 +27,4 @@ jobs: - name: Display Output run: dir output - name: Push to NuGet - run: dotnet nuget push output/org.ohdsi.cdm.framework.${{ steps.gitversion.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} + run: dotnet nuget push output/org.ohdsi.cdm.framework.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} From 6e02908f0a67e0000c40c17fd20b4cd5a5aca2c1 Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Thu, 1 Aug 2024 12:54:01 +0300 Subject: [PATCH 7/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4f715eb..a5254ec 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,8 +23,6 @@ jobs: - name: Test run: dotnet test -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Create NuGet Package - run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -o output - - name: Display Output - run: dir output + run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Push to NuGet - run: dotnet nuget push output/org.ohdsi.cdm.framework.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} + run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} From 997ce110311946e6a4252fc5d31f7aa975ae81f5 Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Fri, 2 Aug 2024 13:36:48 +0300 Subject: [PATCH 8/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a5254ec..885dbf4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,10 +1,6 @@ name: Release to NuGet on: workflow_dispatch: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] jobs: publish: runs-on: ubuntu-latest @@ -23,6 +19,6 @@ jobs: - name: Test run: dotnet test -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Create NuGet Package - run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj + run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=${{ github.event.release.tag_name }} - name: Push to NuGet run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }} From 6729e808e7aa224d98a5f6a469bd8a6a910669b1 Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Mon, 5 Aug 2024 13:13:58 +0300 Subject: [PATCH 9/9] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 885dbf4..042663c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,8 +16,6 @@ jobs: run: dotnet restore sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Build run: dotnet build -c Release sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - - name: Test - run: dotnet test -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj - name: Create NuGet Package run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=${{ github.event.release.tag_name }} - name: Push to NuGet