From 4a001801aa650874d37f4cea81f2ab4535519a62 Mon Sep 17 00:00:00 2001 From: Heavy Bob <ferrettclay@gmail.com> Date: Sat, 5 Apr 2025 23:02:42 +1100 Subject: [PATCH] Added git actions --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0577741 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build and Package + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: "6.0.x" + + - name: Restore dependencies + run: dotnet restore AutoTrackR2.sln + + - name: Build + run: dotnet build AutoTrackR2.sln --configuration Release --no-restore + + - name: Create artifacts directory + run: mkdir artifacts + + - name: Copy build output + run: | + Copy-Item "AutoTrackR2\bin\Release\net6.0-windows\*" "artifacts\" + Copy-Item "AutoTrackR2_Setup\bin\Release\*" "artifacts\" + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: AutoTrackR2-Release + path: artifacts/ + retention-days: 5