Skip to content

Commit

Permalink
Merge pull request #517 from Banashek/513-fix-gh-versioning
Browse files Browse the repository at this point in the history
Updating github workflow file to use nuget-acceptable version numbers for packaging
  • Loading branch information
dustinmoris committed Jul 7, 2022
2 parents d28d300 + b0fb604 commit 29d18c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ jobs:
run: dotnet test -c Release
- name: Pack
if: matrix.os == 'ubuntu-latest'
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$GITHUB_RUN_ID src/$PROJECT_NAME/$PROJECT_NAME.*proj
run: |
latestTag=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.0.1)
runId=$GITHUB_RUN_ID
packageVersion="${latestTag//v}-build.${runId}"
dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$packageVersion src/$PROJECT_NAME/$PROJECT_NAME.*proj
- name: Upload Artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 29d18c8

Please sign in to comment.