Skip to content

Commit 4e4f095

Browse files
authored
Update Dotnet_template.yml
1 parent 04eee41 commit 4e4f095

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed
Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
name: CI
2-
on: [push]
3-
#push:
4-
#branches:
5-
# - master
6-
#tags:
7-
# - v*.*.*
8-
#pull_request:
9-
# branches:
10-
# - master
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- v*.*.*
8+
pull_request:
9+
branches:
10+
- master
1111

1212
jobs:
13-
Build:
14-
runs-on: '${{ matrix.os }}'
15-
strategy:
16-
matrix:
17-
os:
18-
- ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v2
21-
- run: mkdir -p .nuget
22-
- run: >-
23-
wget -O .nuget/nuget.exe
24-
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
25-
- run: mono .nuget/nuget.exe
26-
- run: dotnet test Test/Test.csproj
27-
- run: mono .nuget/nuget.exe pack -NoDefaultExcludes
28-
- name: GitHub Release
29-
if: |
30-
success() &&
31-
startsWith(github.ref, 'refs/tags/')
32-
uses: softprops/action-gh-release@v1
33-
with:
34-
files: ./**/*.nupkg
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
tags: true
13+
dotnet-template-azure-iot-edge-module:
14+
name: dotnet-template-azure-iot-edge-module
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- run: mkdir -p .nuget
19+
- name: Download nuget
20+
run: >-
21+
wget -O .nuget/nuget.exe
22+
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
23+
- name: Install Nugget
24+
run: mono .nuget/nuget.exe
25+
- name: dotnet test
26+
run: dotnet test Test/Test.csproj
27+
- name: nuget packag
28+
run: mono .nuget/nuget.exe pack -NoDefaultExcludes
29+
- name: GitHub Release
30+
if: |
31+
success() &&
32+
startsWith(github.ref, 'refs/tags/')
33+
uses: softprops/action-gh-release@v1
34+
with:
35+
files: ./**/*.nupkg
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
tags: true

0 commit comments

Comments
 (0)