-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (39 loc) · 1.14 KB
/
release.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: release
on:
push:
tags:
- "v*.*.*"
jobs:
Windows_2022_32bit:
runs-on: windows-2022
env:
MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Configure CMake
shell: cmd
run: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -A Win32
- name: Build
shell: cmd
run: |
# https://stackoverflow.com/a/19026241
cmake --build build --config Release
- name: Get Exe Hash
id: hashes
shell: pwsh
run: |
$exe_hash = $(Get-FileHash xiloader.exe -Algorithm MD5).hash
"::set-output name=exe_hash::$($exe_hash)"
- name: Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
files: xiloader.exe
body: |
MD5: ${{ steps.hashes.outputs.exe_hash }}
draft: false
prerelease: false