Skip to content

Add automated draft releases #16

Add automated draft releases

Add automated draft releases #16

name: build-artifact-publish
on:
push:
tags:
- "*"
jobs:
build-matrix-publish:
runs-on: windows-2022
strategy:
matrix:
platform: [x64, Win32]
# configuration is Release only
steps:
- name: Build program
uses: actions/checkout@master
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
call msbuild -m:5 -nologo -p:Configuration="Release" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat Release ${{ matrix.platform }}
- name: Upload binaries
uses: actions/upload-artifact@master
with:
path: distribute/*_${{ matrix.platform }}_Release.7z
publish-build:
needs: build-matrix-publish
runs-on: windows-2022
steps:
- name: Download binaries
uses: actions/download-artifact@master
shell: powershell
with:
path: distribute
run: ls -R
- name: Upload release
uses: marvinpinto/action-automatic-releases@master
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
automatic_release_tag: draft
files: distribute/*.7z