CI: restore github releases creation

This commit is contained in:
Eric Wasylishen 2024-02-04 15:24:44 -07:00
parent 06b5e6dc64
commit 83798c4bb7
1 changed files with 27 additions and 0 deletions

View File

@ -48,6 +48,15 @@ jobs:
path: ericw-tools-linux/
name: ericw-tools-${{ github.sha }}-linux
if-no-files-found: error
- name: 'Linux: Create GitHub Release and upload build'
uses: softprops/action-gh-release@v1
if: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }}
with:
draft: true
files: |
build-linux/*-Linux.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'macOS: Install Qt5'
if: ${{ startsWith(matrix.os, 'macos-') }}
@ -69,6 +78,15 @@ jobs:
path: ericw-tools-macos/
name: ericw-tools-${{ github.sha }}-macos
if-no-files-found: error
- name: 'macOS: Create GitHub Release and upload build'
uses: softprops/action-gh-release@v1
if: ${{ startsWith(matrix.os, 'macos-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }}
with:
draft: true
files: |
build-osx/*-Darwin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Windows: Setup MSVC environment'
if: startsWith(matrix.os, 'windows-')
@ -94,3 +112,12 @@ jobs:
path: ericw-tools-windows/
name: ericw-tools-${{ github.sha }}-windows
if-no-files-found: error
- name: 'Windows: Create GitHub Release and upload build'
uses: softprops/action-gh-release@v1
if: ${{ startsWith(matrix.os, 'windows-') && matrix.use-asan == 'NO' && startsWith(github.ref, 'refs/tags/') }}
with:
draft: true
files: |
build-windows\*-win64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}