forked from Dn-Programming-Core-Management/Dn-FamiTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.26 KB
/
build-release-artifact.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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:
- uses: actions/checkout@master
- 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="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:
- uses: actions/download-artifact@master
- name: Download binaries
shell: powershell
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: artifact/*.7z