forked from shizukachan/atelier_pak_decrypt
-
Notifications
You must be signed in to change notification settings - Fork 27
49 lines (39 loc) · 1.29 KB
/
windows.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
42
43
44
45
46
47
48
49
name: Windows
on: [push, pull_request]
env:
PROJECT_NAME: gust_tools
FRIENDLY_NAME: Gust Tools
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set version
shell: bash
id: set_version
run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild ${{ env.PROJECT_NAME }}.sln /m /p:Configuration=Release /p:Platform=x86 /p:AppVersion=${{ steps.set_version.outputs.version }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}
path: ./x86/Release/*.exe
- name: Prepare release
if: startsWith(github.ref, 'refs/tags/')
run: |
7z a ${{ env.PROJECT_NAME }}.zip .\x86\Release\*.exe *.json README.md LICENSE.txt
sha256sum ${{ env.PROJECT_NAME }}.zip
- name: Upload release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ env.FRIENDLY_NAME}} ${{ steps.set_version.outputs.version }}
files: ./*.zip