mirror of
https://github.com/AndnixSH/APKToolGUI.git
synced 2026-05-04 11:02:27 +00:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
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/
|