-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.01 KB
/
dotnet-desktop.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
name: .NET Core Desktop
on:
push:
branches: [ master ]
paths-ignore:
- "**.md"
pull_request:
branches: [ master ]
paths-ignore:
- "**.md"
jobs:
build:
runs-on: [self-hosted, linux]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
# Restore project
- name: Restore project
run: dotnet restore
# Build project
- name: Build project
run: dotnet build --configuration Release
# Kill dotnet process
- name: Kill dotnet process
run: pkill dotnet
# Execute run script
- name: Execute run script
shell: bash
env:
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
run: |
chmod u+r+x run.sh
RUNNER_TRACKING_ID="" && sh run.sh "$SECRET_PASSPHRASE"