-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (23 loc) · 886 Bytes
/
Copy pathlearngithub.yml
File metadata and controls
34 lines (23 loc) · 886 Bytes
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
name: learning-github
run-name: learning github actions for first time
on:
push:
branches:
- master
jobs:
firstjob:
runs-on: windows-2019
steps:
- name: checkout-my-code
uses: actions/checkout@v3.3.0
- name: add msbuild path
uses: microsoft/setup-msbuild@v1.1
- name: restore my nuget package from solution
run: nuget restore WebApplication/WebApplication.sln
- name: build my code using msbuild
run: msbuild WebApplication/WebApplication.sln /p:Configuration=Release /p:DeployTarget=Package /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:DeployOnBuild=true
- name: upload my build artifacts
uses: actions/upload-artifact@v3.1.2
with:
name: buildartifact
path: '**/obj/Release/Package/**'