From cf6ea34336ab1740e3924f570a72ee70b95dcef2 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 08:39:53 -0800 Subject: [PATCH 1/6] GHA: publish nuget packages to the GitHub Nuget Store This pushes the new nuget packages to the nuget source to ease the distribution for our builds. --- .github/workflows/bcny-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index 36706408e..46777641c 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -92,4 +92,20 @@ jobs: - uses: actions/upload-artifact@v3 with: name: windows-${{ matrix.arch }}.nupkg - path: io.sentry.sentry-native.win.*.0.0.0-*.nupkg + path: io.sentry.sentry-native.win.crashpad.*.nupkg + + - name: Publish NuGet Packages + env: + NUGET_SOURCE_NAME: TheBrowserCompany + NUGET_SOURCE_URL: https://nuget.pkg.github.com/thebrowsercompany/index.json + NUGET_SOURCE_USERNAME: thebrowsercompany-bot2 + NUGET_SOURCE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} + run: + if ((nuget sources List | Select-String "${env:NUGET_SOURCE_NAME}").Count -gt 0) { + nuget sources Remove -Name "${env:NUGET_SOURCE_NAME}" + } + nuget sources Add -Name ${env:NUGET_SOURCE_NAME} -Source ${env:NUGET_SOURCE_URL} -Username ${env:NUGET_SOURCE_USERNAME} -Password ${env:NUGET_SOURCE_PASSWORD} -StorePasswordInClearText + nuget setApiKey ${env:NUGET_API_KEY} -Source ${env:NUGET_SOURCE_URL} + nuget push io.sentry.win.crashpad.*.nupkg -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate + shell: pwsh From b157cdcdbeb31ccabf5047377a0aee4e3756b519 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 09:05:34 -0800 Subject: [PATCH 2/6] Update bcny-ci.yml --- .github/workflows/bcny-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index 46777641c..ef6c029b8 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -101,7 +101,7 @@ jobs: NUGET_SOURCE_USERNAME: thebrowsercompany-bot2 NUGET_SOURCE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} - run: + run: > if ((nuget sources List | Select-String "${env:NUGET_SOURCE_NAME}").Count -gt 0) { nuget sources Remove -Name "${env:NUGET_SOURCE_NAME}" } From 8b0fd434619256bc4cefcef0199378cbbaaa7688 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 09:10:35 -0800 Subject: [PATCH 3/6] Update bcny-ci.yml --- .github/workflows/bcny-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index ef6c029b8..874604bac 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -101,7 +101,7 @@ jobs: NUGET_SOURCE_USERNAME: thebrowsercompany-bot2 NUGET_SOURCE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} - run: > + run: | if ((nuget sources List | Select-String "${env:NUGET_SOURCE_NAME}").Count -gt 0) { nuget sources Remove -Name "${env:NUGET_SOURCE_NAME}" } From 54e93d50a3729accede9e69c3937127035005c8c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 09:19:12 -0800 Subject: [PATCH 4/6] Update bcny-ci.yml --- .github/workflows/bcny-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index 874604bac..05624783a 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -107,5 +107,6 @@ jobs: } nuget sources Add -Name ${env:NUGET_SOURCE_NAME} -Source ${env:NUGET_SOURCE_URL} -Username ${env:NUGET_SOURCE_USERNAME} -Password ${env:NUGET_SOURCE_PASSWORD} -StorePasswordInClearText nuget setApiKey ${env:NUGET_API_KEY} -Source ${env:NUGET_SOURCE_URL} - nuget push io.sentry.win.crashpad.*.nupkg -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate + $pkgs = Get-ChildItem -Path io.sentry.win.crashpad.*.nupkg + nuget push @pkgs -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate shell: pwsh From fee81d9d9afd178db9caa6ce12e8e92799449980 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 09:25:34 -0800 Subject: [PATCH 5/6] Update bcny-ci.yml --- .github/workflows/bcny-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index 05624783a..16655d77d 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -108,5 +108,5 @@ jobs: nuget sources Add -Name ${env:NUGET_SOURCE_NAME} -Source ${env:NUGET_SOURCE_URL} -Username ${env:NUGET_SOURCE_USERNAME} -Password ${env:NUGET_SOURCE_PASSWORD} -StorePasswordInClearText nuget setApiKey ${env:NUGET_API_KEY} -Source ${env:NUGET_SOURCE_URL} $pkgs = Get-ChildItem -Path io.sentry.win.crashpad.*.nupkg - nuget push @pkgs -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate + nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate shell: pwsh From f2112a25c4f838a04134e58968df7cc4ceabfea8 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 5 Dec 2023 09:32:14 -0800 Subject: [PATCH 6/6] Update bcny-ci.yml --- .github/workflows/bcny-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bcny-ci.yml b/.github/workflows/bcny-ci.yml index 16655d77d..2a7dd7d0b 100644 --- a/.github/workflows/bcny-ci.yml +++ b/.github/workflows/bcny-ci.yml @@ -107,6 +107,6 @@ jobs: } nuget sources Add -Name ${env:NUGET_SOURCE_NAME} -Source ${env:NUGET_SOURCE_URL} -Username ${env:NUGET_SOURCE_USERNAME} -Password ${env:NUGET_SOURCE_PASSWORD} -StorePasswordInClearText nuget setApiKey ${env:NUGET_API_KEY} -Source ${env:NUGET_SOURCE_URL} - $pkgs = Get-ChildItem -Path io.sentry.win.crashpad.*.nupkg + $pkgs = Get-ChildItem -Path io.sentry.sentry-native.win.crashpad.*.nupkg nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate shell: pwsh