forked from AndnixSH/APKToolGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.01 KB
/
build.yml
File metadata and controls
47 lines (35 loc) · 1.01 KB
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
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
name: Checkout Code
- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v1.3.1
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore NuGet Packages
run: nuget restore APKToolGUI.sln
- name: Build Application
run: msbuild APKToolGUI.sln /p:Configuration=Release
- name: Create package directory
run: mkdir package
- name: Copy essential files to package
shell: pwsh
run: |
Copy-Item APKToolGUI/bin/Release/APKToolGUI.exe package/
Copy-Item changelog.txt package/Changelog.txt
if (Test-Path APKToolGUI/bin/Release/Resources) {
Copy-Item APKToolGUI/bin/Release/Resources package/ -Recurse
}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: APKToolGUI
path: package/