-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 975 Bytes
/
build-win.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build Project (Windows)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Solution Compilation
run: dotnet build --configuration Debug "VisualCard.sln"
- name: Testing
run: dotnet test --configuration Debug "VisualCard.sln"
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: vc-build
path: "VisualCard/bin/Debug/"
notify:
runs-on: ubuntu-latest
needs:
- build
if: ${{ always() }}
steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.G_TOKEN }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}