File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed
Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push]
3+ on : [push, pull_request ]
44
55jobs :
6- build :
7- name : Executing tests
6+ build :
7+ env :
8+ VERSION : 1.0.0-beta-1337
89 runs-on : ubuntu-latest
9- steps :
10- - uses : actions/checkout@v1
11- - uses : actions/setup-dotnet@v1
12- with :
13- dotnet-version : ' 3.1.100'
14- - run : dotnet build -c Release
15- - run : dotnet test -c Release /nowarn:CS1591
16- - run : dotnet pack src/ -c Release -o ${GITHUB_WORKSPACE} -p:version=1.0.0 /nowarn:CS1591
10+ steps :
11+ - uses : actions/checkout@v1
12+ - uses : actions/setup-dotnet@v1
13+ with :
14+ dotnet-version : ' 3.1.100'
15+ - name : Building project
16+ run : dotnet build -c Release
17+ - name : Running tests
18+ run : dotnet test -c Release /nowarn:CS1591
19+ - name : Creating package
20+ run : dotnet pack src/ -c Release -o ${GITHUB_WORKSPACE} -p:version=$VERSION /nowarn:CS1591
21+ - name : Find and Replace
22+ uses : jacobtomlinson/gha-find-replace@master
23+ with :
24+ find : " [[VERSION]]"
25+ replace : $VERSION
26+ include : " *.csproj"
27+ - name : Creating template package
28+ run : dotnet pack template/ -c Release -o ${GITHUB_WORKSPACE} -p:PackageVersion=$VERSION
You can’t perform that action at this time.
0 commit comments