From ad6083917ca4c1bfd9b6c577cfbd870d170a9116 Mon Sep 17 00:00:00 2001 From: Andrzej Fiedukowicz Date: Fri, 19 Jan 2024 16:21:48 +0100 Subject: [PATCH] nupckg --- .github/workflows/bcny-release.yml | 220 +++++++++-------------------- 1 file changed, 63 insertions(+), 157 deletions(-) diff --git a/.github/workflows/bcny-release.yml b/.github/workflows/bcny-release.yml index 733a1ee74e..19e905b424 100644 --- a/.github/workflows/bcny-release.yml +++ b/.github/workflows/bcny-release.yml @@ -17,7 +17,7 @@ jobs: - arch: 'amd64' platform: 'x64' - arch: 'arm64' - platform: 'arm64' + platform: 'ARM64' steps: - uses: actions/checkout@v4 @@ -46,159 +46,65 @@ jobs: run: msbuild .\builds\msvc\vs2022\libsodium.sln /p:Configuration=LtcgRelease /p:Platform=${{ matrix.platform }} - # - name: Package firebase-cpp-sdk - # run: | - # @" - # - # - # - # com.google.firebase.windows.${{ matrix.arch }} - # 0.0.0.0 - # Firebase C++ SDK - # C++ Firebase SDK - # Google, Inc. - # https://firebase.google.com - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # - # "@ | Out-File -Encoding UTF8 firebase.nuspec - # nuget pack -Properties BUILDROOT=${{ github.workspace }}\BuildRoot\Library\firebase -Suffix (git -C ${{ github.workspace }}/SourceCache/firebase-cpp-sdk log -1 --format=%h) firebase.nuspec - # shell: pwsh - # - uses: actions/upload-artifact@v3 - # with: - # name: windows-${{ matrix.arch }}.nupkg - # path: com.google.firebase.windows.${{ matrix.arch }}.*.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} - # $pkgs = Get-ChildItem -Path com.google.firebase.windows.${{ matrix.arch }}.*.nupkg - # nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate - # shell: pwsh \ No newline at end of file + + - name: Tree pwd + run: + tree /f + + - name: Tree workspace + run: + tree ${{ github.workspace }} /f + + - name: LS + run: + ls ${{ github.workspace }}\bin\${{matrix.platform}}\Release\v143\static\libsodium.lib + + - name: Package libsodium + run: | + @" + + + + org.libsodium.libsodium.windows.${{ matrix.arch }} + 0.0.0 + libsodium + libsodium + org.libsodium + https://libsodium.org + + + + + + + + + + + + + "@ | Out-File -Encoding UTF8 libsodium.nuspec + nuget pack -Suffix (git -C log -1 --format=%h) libsodium.nuspec + shell: pwsh + + - uses: actions/upload-artifact@v3 + with: + name: windows-${{ matrix.arch }}.nupkg + path: org.libsodium.libsodium.windows.${{ matrix.arch }}.*.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} + $pkgs = Get-ChildItem -Path org.libsodium.libsodium.windows.${{ matrix.arch }}.*.nupkg + nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate + shell: pwsh \ No newline at end of file