-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.39 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
push:
branches:
- main
tags:
- v*
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build_all:
name: Build (win-x64)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: dotnet publish -c Release /p:PublishProfile=win-x64 -p:DebugType=none
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: win-x64
path: G2GFxDataTool\bin\Release\net8.0\publish\win-x64
release:
needs: build_all
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download win-x64 artifact
uses: actions/download-artifact@v3
with:
name: win-x64
- name: Download ResourceTool
uses: robinraju/[email protected]
with:
repository: "OrfeasZ/ZHMTools"
latest: true
extract: true
fileName: "ResourceLib-win-x64.zip"
- name: Package artifacts for release
run: |
zip -r win-x64.zip G2GFxDataTool.exe ResourceLib_HM2016.dll ResourceLib_HM3.dll ResourceLib_HM2.dll
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: win-x64.zip