mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-15 11:19:07 +00:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Build and Package
|
|
|
|
on:
|
|
push:
|
|
branches: [default]
|
|
pull_request:
|
|
branches: [default]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: "9.0.x"
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore AutoTrackR2.sln
|
|
|
|
- name: Build
|
|
run: dotnet build AutoTrackR2.sln --configuration Release --no-restore
|
|
|
|
- name: List build output directories
|
|
run: |
|
|
Write-Host "Listing build output directories:"
|
|
Get-ChildItem -Recurse -Directory -Filter "Release" | ForEach-Object { Write-Host $_.FullName }
|
|
|
|
- name: Create artifacts directory
|
|
run: mkdir artifacts
|
|
|
|
- name: Copy build output
|
|
run: |
|
|
$releaseDir = Get-ChildItem -Recurse -Directory -Filter "Release" | Select-Object -First 1
|
|
if ($releaseDir) {
|
|
Write-Host "Copying from: $($releaseDir.FullName)"
|
|
Copy-Item "$($releaseDir.FullName)\*" "artifacts\" -Recurse
|
|
} else {
|
|
Write-Host "No Release directory found"
|
|
exit 1
|
|
}
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: AutoTrackR2-Release
|
|
path: artifacts/
|
|
retention-days: 5
|