-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (43 loc) · 1.21 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
52
53
54
# This workflow will build and publish a WinUI 3 unpackaged desktop application
# built on .NET.
name: Test,Build And Release JASM
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- 'src/**'
push:
branches: [ main ]
paths:
- 'src/**'
- 'CHANGELOG.md'
jobs:
build:
strategy:
matrix:
configuration: [Release]
platform: [x64]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Test
run: dotnet test ${{ github.workspace }}\src
- name: Build, publish and zip the app
run: python ${{ github.workspace }}\Build\Release.py
shell: cmd
# Upload the app
- name: Upload JASM
uses: actions/upload-artifact@v3
with:
name: Upload JASM
path: ${{ github.workspace }}\\${{ env.zipFile }}