File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments