We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a8b7e commit b063303Copy full SHA for b063303
.github/workflows/NugetPublishing.yml
@@ -1,8 +1,8 @@
1
name: Publish Packages
2
3
on:
4
- push:
5
- branches: [ master ]
+ release:
+ types: [published]
6
7
jobs:
8
build:
@@ -16,10 +16,14 @@ jobs:
16
dotnet-version: 5.0.x
17
- name: Install dependencies
18
run: dotnet restore
19
+ - name: Get Version from Tag
20
+ id: get_version
21
+ uses: battila7/get-version-action@v2
22
- name: Build
23
run: dotnet build --configuration Release --no-restore
24
- name: Publish DTD.Sort.Net
25
uses: brandedoutcast/publish-nuget@v2.5.2
26
with:
27
PROJECT_FILE_PATH: ./DTD.Sort.Net.Main/DTD.Sort.Net.Main.csproj
28
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
29
+ VERSION_STATIC: ${{ steps.get_version.outputs.version-without-v }}
0 commit comments