This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (60 loc) · 1.8 KB
/
ci.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Windows Build
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@v2
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore Source/Mocha.sln
- name: Build
run: dotnet publish --output "C:\temp\build" -c Release -r win-x64 Source/Mocha.sln
- name: Test
run: dotnet test --no-build --verbosity normal Source/Mocha.sln
- name: Build Success
uses: rjstone/discord-webhook-notify@v1
if: success()
with:
severity: info
webhookUrl: ${{ secrets.CI_DISCORD_WEBHOOK_PUBLIC }}
description: "Windows: build success"
- name: Build Failure
uses: rjstone/discord-webhook-notify@v1
if: failure()
with:
severity: error
webhookUrl: ${{ secrets.CI_DISCORD_WEBHOOK_PUBLIC }}
description: "Windows: build failed"
text: "https://tenor.com/view/conductor-we-have-a-problem-cat-cute-funny-gif-17168115721186324165"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: build-output
path: C:\temp\build
deployToSteam:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: build-output
path: build
- name: Upload to steam
uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
appId: 2280950
buildDescription: ${{ github.sha }}
rootPath: build
depot1Path: .
releaseBranch: prerelease