Skip to content

Commit

Permalink
gets version from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnie-fialok committed Jul 3, 2024
1 parent 1fd8415 commit 227fad9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches: [ master, VFL/WI00764279/NCN-Diagrams-Move-WTG.Blazor.Diagrams-to-nuget.org ]
tags:
- "*"
- "v*"
workflow_dispatch:

env:
Expand All @@ -20,6 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get Version
id: version
uses: battila7/get-version-action@v2

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
Expand All @@ -35,7 +39,7 @@ jobs:

- name: Pack Blazor.Diagrams
working-directory: src/Blazor.Diagrams
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}'
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.NUGET_DIR }}'

- name: Push
run: >-
Expand Down

0 comments on commit 227fad9

Please sign in to comment.