ci: upload tagged GitHub Actions Windows installers as releases
authorVincent Fu <vincent.fu@samsung.com>
Tue, 25 Apr 2023 18:22:26 +0000 (18:22 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 24 May 2023 13:58:11 +0000 (09:58 -0400)
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 <vincent.fu@samsung.com>
.github/workflows/ci.yml

index dd2997f0753c2f8d3a1632fef80114ebd42fa792..69fedf77519c0fdb6ec31096cc71cc64d062b849 100644 (file)
@@ -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