From 954b86f71b0718943796192be1a89ffb0da5a97c Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 25 Apr 2023 18:22:26 +0000 Subject: [PATCH] ci: upload tagged GitHub Actions Windows installers as releases Since we are no long using AppVeyor for Windows tests, we can use the installers built by GitHub Actions for Windows releases. Signed-off-by: Vincent Fu --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd2997f0..69fedf77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,12 +108,17 @@ jobs: dobuild.cmd ${{ matrix.installer_arch }} cd ..\.. - - name: Upload installer (Windows) + - name: Upload installer as artifact (Windows) if: ${{ contains( matrix.build, 'windows' ) }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.build }}-installer path: os\windows\*.msi + - name: Upload installer as release for tagged builds (Windows) + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(github.ref, 'refs/tags/') && startsWith(matrix.build, 'windows-cygwin') }} + with: + files: os/windows/*.msi - name: Remove dependency files to resolve Makefile Cygwin sed issue (Windows) if: ${{ startsWith(matrix.build, 'windows-cygwin') }} run: rm *.d */*.d */*/*.d -- 2.25.1