mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-05 01:55:31 +00:00
Added git actions
This commit is contained in:
parent
3022ad03ed
commit
4a001801aa
1 changed files with 40 additions and 0 deletions
40
.github/workflows/build.yml
vendored
Normal file
40
.github/workflows/build.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue