Skip to content

Commit 92df88d

Browse files
committed
Adding possible tagging action
1 parent 6563c64 commit 92df88d

1 file changed

Lines changed: 2 additions & 36 deletions

File tree

.github/workflows/dotnet-core.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: .NET Core
22

33
on:
44
push:
5+
tags:
6+
- '*'
57
branches:
6-
- master
78
- develop
89
pull_request:
910
branches: [ develop ]
@@ -18,38 +19,3 @@ jobs:
1819
uses: actions/checkout@v2
1920
with:
2021
fetch-depth: 0
21-
- name: Setup .NET Core
22-
uses: actions/setup-dotnet@v1
23-
with:
24-
dotnet-version: '3.1.x'
25-
- name: Install dependencies
26-
run: dotnet restore
27-
- name: Build
28-
run: dotnet build --configuration Release --no-restore
29-
- name: Test
30-
run: dotnet test --no-restore --verbosity normal
31-
- name: Install GitVersion
32-
uses: gittools/actions/gitversion/setup@v0.9.7
33-
if: ${{ contains(github.event_name, 'push') }}
34-
with:
35-
versionSpec: '5.x'
36-
- name: Determine Version
37-
uses: gittools/actions/gitversion/execute@v0.9.7
38-
if: ${{ contains(github.event_name, 'push') }}
39-
with:
40-
useConfigFile: true
41-
- name: Display SemVer
42-
if: ${{ contains(github.event_name, 'push') }}
43-
run: |
44-
echo "SemVer: $GITVERSION_SEMVER"
45-
- name: Package
46-
if: ${{ contains(github.event_name, 'push') }}
47-
run: dotnet pack --no-restore --no-build --verbosity normal --output ./Packages -p:PackageVersion=$GITVERSION_SEMVER
48-
- name: Push
49-
if: ${{ contains(github.event_name, 'push') }}
50-
run: |
51-
cd Packages
52-
ls
53-
dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
54-
env:
55-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)