From 3a8b483b0762389ccf8ba47030e11f398968e7b6 Mon Sep 17 00:00:00 2001 From: OluwatobiAwe Date: Mon, 6 Feb 2023 15:51:12 +0000 Subject: [PATCH 1/4] ci update --- .github/workflows/continuous-integration-workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 80f7185..cbe855f 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -45,8 +45,8 @@ jobs: - name: Push generated package to GitHub registry if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --source https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json --api-key ${{ secrets.NUGETAPIKEY }} + run: dotnet nuget push ./package/*.nupkg --source https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate - name: Push generated package to Azure Feed if: startsWith(github.ref, 'refs/tags/v') - run: dotnet nuget push ./package/*.nupkg --source https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json --api-key ${{ secrets.AZUREDEVOPSKEY }} \ No newline at end of file + run: dotnet nuget push ./package/*.nupkg --source https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json --api-key ${{ secrets.AZUREDEVOPSKEY }} --skip-duplicate \ No newline at end of file From f5a598e4b1e2f0f3c4032f012ef161ece5dffbd8 Mon Sep 17 00:00:00 2001 From: OluwatobiAwe Date: Mon, 6 Feb 2023 15:54:41 +0000 Subject: [PATCH 2/4] . --- .github/workflows/continuous-integration-workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index cbe855f..23f4833 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -40,7 +40,6 @@ jobs: run: dotnet build NHSUKViewComponents.sln --configuration release - name: Package nuget - if: startsWith(github.ref, 'refs/tags/v') run: dotnet pack NHSUKViewComponents.sln --configuration release -o:package /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} - name: Push generated package to GitHub registry @@ -48,5 +47,4 @@ jobs: run: dotnet nuget push ./package/*.nupkg --source https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate - name: Push generated package to Azure Feed - if: startsWith(github.ref, 'refs/tags/v') run: dotnet nuget push ./package/*.nupkg --source https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json --api-key ${{ secrets.AZUREDEVOPSKEY }} --skip-duplicate \ No newline at end of file From df1a3c62a38a38692d193cacfbc6c67800521404 Mon Sep 17 00:00:00 2001 From: OluwatobiAwe Date: Mon, 6 Feb 2023 16:04:02 +0000 Subject: [PATCH 3/4] . --- .github/workflows/continuous-integration-workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 23f4833..2c692b1 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -35,6 +35,10 @@ jobs: echo "Minor: ${{ steps.gitversion.outputs.minor }}" echo "Patch: ${{ steps.gitversion.outputs.patch }}" echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" + + - name: Add Azure artifact + run: dotnet nuget add source 'https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json' --name 'LearningHubFeed' --username 'kevin.whittaker' --password ${{ secrets.AZUREDEVOPSKEY }} --store-password-in-clear-text + - name: Dotnet build run: dotnet build NHSUKViewComponents.sln --configuration release From 8899b713ad2afe373626c18a730a3fe5dc697e36 Mon Sep 17 00:00:00 2001 From: OluwatobiAwe Date: Mon, 6 Feb 2023 16:27:36 +0000 Subject: [PATCH 4/4] C.I Update --- .github/workflows/continuous-integration-workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 2c692b1..c773775 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -51,4 +51,5 @@ jobs: run: dotnet nuget push ./package/*.nupkg --source https://nuget.pkg.github.com/TechnologyEnhancedLearning/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate - name: Push generated package to Azure Feed + if: startsWith(github.ref, 'refs/tags/v') run: dotnet nuget push ./package/*.nupkg --source https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json --api-key ${{ secrets.AZUREDEVOPSKEY }} --skip-duplicate \ No newline at end of file