We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3d350 commit a107edfCopy full SHA for a107edf
.github/workflows/build.yml
@@ -40,7 +40,11 @@ jobs:
40
run: dotnet test -c Release
41
- name: Pack
42
if: matrix.os == 'ubuntu-latest'
43
- 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: |
44
+ latestTag=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.0.1)
45
+ runId=$GITHUB_RUN_ID
46
+ packageVersion="${latestTag//v}-build.${runId}"
47
+ dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$packageVersion src/$PROJECT_NAME/$PROJECT_NAME.*proj
48
- name: Upload Artifact
49
50
uses: actions/upload-artifact@v2
0 commit comments