Skip to content

Commit 0b51169

Browse files
authored
Dotnet_template
1 parent dfe4d5c commit 0b51169

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- v*.*.*
8+
pull_request:
9+
branches:
10+
- master
11+
12+
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

0 commit comments

Comments
 (0)