-
-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (40 loc) · 1.08 KB
/
dotnet.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
name: .NET Build
on:
push:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
pull_request:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
jobs:
build:
name: .NET on ${{ matrix.runs-on }} (${{ matrix.configuration }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [windows-latest]
configuration: [Release]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish
run: dotnet publish -c ${{ matrix.configuration }} --property:PublishDir=../artifacts
# - name: Tar files
# run: tar -cvf artifacts.tar artifacts
- name: Upload artifact
uses: actions/upload-artifact@v3
#if: matrix.configuration == 'Release' && matrix.runs-on == 'windows-latest'
with:
name: PayCheck3-artifact
path: artifacts
if-no-files-found: error