Skip to content

Commit f7449e4

Browse files
authored
Update main.yml
1 parent 7183c80 commit f7449e4

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
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

0 commit comments

Comments
 (0)