Skip to content

Commit

Permalink
fix: update version and fix pipeline with output name of package
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiwow-apay committed Apr 2, 2024
1 parent 2516f34 commit 1766ef1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ jobs:
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack
run: dotnet pack -v normal -c Release --no-build --include-symbols --include-source -o package
# - name: Verify package name & version
# id: nupkg
# if: inputs.publish
# run: |
# TAG_NAME=${{ inputs.tagName }}
# VERSION=${TAG_NAME##*v}
# NUPKG="${{ inputs.projectName }}.${VERSION}.nupkg"
# echo "::set-output name=filename::$NUPKG"
# if [ ! -f package/$NUPKG ]; then
# echo "File '$NUPKG' does not exist";
# exit 1;
# fi
- name: Verify package name & version
id: nupkg
if: inputs.publish
run: |
TAG_NAME=${{ inputs.tagName }}
VERSION=${TAG_NAME##*v}
NUPKG="${{ inputs.projectName }}.${VERSION}.nupkg"
echo "::set-output name=filename::$NUPKG"
if [ ! -f package/$NUPKG ]; then
echo "File '$NUPKG' does not exist";
exit 1;
fi
- uses: actions/upload-artifact@v3
if: inputs.publish
with:
Expand Down
2 changes: 1 addition & 1 deletion src/Allegro.DotnetSdk/Allegro.DotnetSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<PackageVersion>2.2.0</PackageVersion>
<PackageVersion>2.2.1</PackageVersion>
<IsPackable>true</IsPackable>
<DevelopmentDependency>true</DevelopmentDependency>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down

0 comments on commit 1766ef1

Please sign in to comment.