-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.03 KB
/
dotnet.yml
File metadata and controls
42 lines (38 loc) · 1.03 KB
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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: pwd
- uses: actions/checkout@v3
with:
path: 'ComputerAnalytics/ComputerAnalytics'
- uses: actions/checkout@v3
with:
repository: 'ComputerElite/ComputerUtils'
path: 'ComputerUtils/'
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: 'ComputerAnalytics/ComputerAnalytics'
run: dotnet restore
- name: Build
working-directory: 'ComputerAnalytics/ComputerAnalytics'
run: dotnet build --no-restore
- name: Zip build
uses: papeloto/action-zip@v1
with:
files: ComputerAnalytics/ComputerAnalytics/bin/Debug/net6.0
dest: net6.0.zip
- name: Upload net6.0.zip
uses: actions/upload-artifact@v3
with:
name: net6.0.zip
path: ComputerAnalytics/ComputerAnalytics/bin/Debug/net6.0