From 42b7ac1da504dbdf76247bb96e356c9e29b22248 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 3 Jan 2022 09:37:32 -0800 Subject: Push WiX v4 .nupkgs to GitHub Packages --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eeedec8..7a9aa795 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,14 +48,18 @@ jobs: name: artifacts path: build/artifacts/ - - name: Zip temp logs + - name: Collect integration test logs + if: always() shell: cmd run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" - if: always() - name: Save logs - uses: actions/upload-artifact@v2 if: always() + uses: actions/upload-artifact@v2 with: name: logs_${{ github.run_id }} path: build/logs/ + + - name: Push to GitHub Packages + if: ${{ github.event_name == 'push' && github.repository_owner == 'wixtoolset' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') }} + run: dotnet nuget push "build/artifacts/**/*.nupkg" --source https://nuget.pkg.github.com/wixtoolset/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate -- cgit v1.2.3-55-g6feb