Skip to content

Commit b063303

Browse files
author
Tanimul Haque Khan
authored
Update NugetPublishing.yml
1 parent 07a8b7e commit b063303

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/NugetPublishing.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish Packages
22

33
on:
4-
push:
5-
branches: [ master ]
4+
release:
5+
types: [published]
66

77
jobs:
88
build:
@@ -16,10 +16,14 @@ jobs:
1616
dotnet-version: 5.0.x
1717
- name: Install dependencies
1818
run: dotnet restore
19+
- name: Get Version from Tag
20+
id: get_version
21+
uses: battila7/get-version-action@v2
1922
- name: Build
2023
run: dotnet build --configuration Release --no-restore
2124
- name: Publish DTD.Sort.Net
2225
uses: brandedoutcast/publish-nuget@v2.5.2
2326
with:
2427
PROJECT_FILE_PATH: ./DTD.Sort.Net.Main/DTD.Sort.Net.Main.csproj
2528
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
29+
VERSION_STATIC: ${{ steps.get_version.outputs.version-without-v }}

0 commit comments

Comments
 (0)