Skip to content

Commit

Permalink
fix: fix issue with version number in release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
asser-dk committed Jan 26, 2024
1 parent dff2ccd commit c696ee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Test
run: dotnet test --configuration Release --no-build --verbosity minimal
- name: Pack Fenris.OneOfContrib.Blazor
run: dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --include-source --verbosity minimal -p:PackageVersion=${{ github.event.release.tag_name }}-rc
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION=${VERSION#v}
dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --include-source --verbosity minimal -p:PackageVersion=$VERSION-rc
- name: Push to nuget.org
run: dotnet nuget push ./artifacts/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
build_release_nuget_package:

runs-on: ubuntu-latest

steps:
Expand All @@ -22,6 +21,9 @@ jobs:
- name: Test
run: dotnet test --configuration Release --no-build --verbosity minimal
- name: Pack Fenris.OneOfContrib.Blazor
run: dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --include-source --verbosity minimal -p:PackageVersion=${{ github.event.release.tag_name }}
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION=${VERSION#v}
dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --include-source --verbosity minimal -p:PackageVersion=$VERSION
- name: Push to nuget.org
run: dotnet nuget push ./artifacts/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_TOKEN }}

0 comments on commit c696ee2

Please sign in to comment.