forked from Blazor-Diagrams/Blazor.Diagrams
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alternative tag extraction using battila action
- Loading branch information
1 parent
475b8ad
commit c990435
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,11 @@ jobs: | |
name: Build - Release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Extract tag name | ||
id: tag_name | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
result-encoding: string | ||
script: | | ||
return context.payload.ref.replace(/^refs\/tags\//, ''); | ||
- name: Extract Version | ||
id: version | ||
uses: battila/get-version-action@v2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -43,7 +39,7 @@ jobs: | |
run: dotnet build --configuration Release | ||
|
||
- name: Create NuGet Packages | ||
run: dotnet pack --configuration Release /p:CommitID=${{ github.sha }} /p:TagVersion=${{ steps.tag_name.outputs.result }} | ||
run: dotnet pack --configuration Release /p:CommitID=${{ github.sha }} /p:TagVersion=${{ steps.version.outputs.version-without-v }} | ||
|
||
# Upload package as an atrifact to the GitHub action | ||
- name: Upload packages | ||
|