aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yaml
blob: ca42169fbb48156dbf7031450a90b09f4727d8fd (plain)
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
name: Build and Save C# Binary on Windows

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v3

    - name: Setup .NET SDK
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: '8.x'

    - name: Restore dependencies
      run: dotnet restore

    - name: Build project
      run: dotnet publish hypr-wellbeing-windows.csproj

    - name: Upload binary artifact
      uses: actions/upload-artifact@v4
      with:
        name: csharp-binary
        path: |
          **/bin/Release/net8.0/**/*.exe
          **/bin/Release/net8.0/**/*.dll