File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release Package
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ release-serviurtium-core :
9
+ if : github.ref.contains("refs/tags/servirtium.core-v")
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Setup .NET Core
17
+ uses : actions/setup-dotnet@v1
18
+ with :
19
+ dotnet-version : 3.1.101
20
+ - name : Install dependencies
21
+ run : dotnet restore
22
+ - name : Build
23
+ run : dotnet build --configuration Release --no-restore
24
+ - name : Test
25
+ run : dotnet test --no-restore --verbosity normal
26
+ # - name: Determine Version
27
+ # uses: paulhatch/semantic-version@v4.0.2
28
+ # id: semantic_version
29
+ # with:
30
+ # format: "${major}.${minor}.${patch}-dev.{increment}"
31
+ - name : Extract version from ref
32
+ uses : actions/github-script@v4
33
+ id : extract-version
34
+ with :
35
+ script : return /refs\/tags\/servirtium.core-v?<version>(.+)/.exec(github.ref)
36
+ - name : Release Version
37
+ uses : rohith/publish-nuget@v2
38
+ with :
39
+ TAG_COMMIT : false
40
+ PROJECT_FILE_PATH : Servirtium.Core/Servirtium.Core.csproj
41
+ VERSION_STATIC : ${{ steps.extract-version.outputs.result }}
42
+ INCLUDE_SYMBOLS : true
43
+
You can’t perform that action at this time.
0 commit comments