Skip to content

Commit

Permalink
Add automated draft releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumball2415 committed Oct 19, 2023
1 parent 2202050 commit 176be26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
platform: [x64, Win32]
configuration: [Release, Debug, ASAN-Release, ASAN-Debug]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@latest
with:
fetch-depth: 0
- name: Build program
Expand All @@ -20,7 +20,7 @@ jobs:
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }} %commithash%_%GITHUB_RUN_ID%
- name: Upload binaries
uses: actions/upload-artifact@master
uses: actions/upload-artifact@latest
with:
name: Dn-FamiTracker_${{ matrix.platform }}_${{ matrix.configuration }}
path: distribute/*_${{ matrix.platform }}_${{ matrix.configuration }}.7z
18 changes: 11 additions & 7 deletions .github/workflows/build-release-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: build-artifact-publish
on:
release:
types: [published]
push:
tags:
- "*"
jobs:
build-matrix-publish:
runs-on: windows-2022
Expand All @@ -10,16 +11,19 @@ jobs:
platform: [x64, Win32]
configuration: [Release, Debug]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@latest
- name: Build program
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="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }}
- name: Upload binaries
uses: actions/upload-artifact@master
- name: Upload release
uses: marvinpinto/action-automatic-releases@latest
with:
name: Dn-FamiTracker_${{ matrix.platform }}_${{ matrix.configuration }}
path: distribute/*_${{ matrix.platform }}_${{ matrix.configuration }}.7z
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
title:
files: distribute/*.7z

0 comments on commit 176be26

Please sign in to comment.