Skip to content

Commit a8c1690

Browse files
JoTiTuDindexx
andauthored
Fix pipeline for develop branch (#474)
* fix dev build number & distribute dev builds via nuget Signed-off-by: Johannes Tuerk <johannes.tuerk@lissi.id> * CI/CD: adjust naming and add storage tests to pipeline Signed-off-by: Kevin <kevin.dinh@lissi.id> --------- Signed-off-by: Johannes Tuerk <johannes.tuerk@lissi.id> Signed-off-by: Kevin <kevin.dinh@lissi.id> Co-authored-by: Kevin <kevin.dinh@lissi.id>
1 parent 9fd1712 commit a8c1690

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish-nuget.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
echo "RC_NUMBER=$RC_NUMBER" >> $GITHUB_OUTPUT
4848
SUFFIX="-rc.$RC_NUMBER"
4949
elif $IS_DEVELOP_BRANCH; then
50-
PR_NUMBER=${{ github.event.pull_request.number }}
51-
SUFFIX="-dev.$PR_NUMBER"
50+
RUN_NUMBER=${{ github.run_number }}
51+
SUFFIX="-dev.$RUN_NUMBER"
5252
elif $IS_PULL_REQUEST; then
5353
PR_NUMBER=${{ github.event.pull_request.number }}
5454
COMMIT_COUNT=$(git rev-list --count HEAD)
@@ -75,12 +75,13 @@ jobs:
7575
dotnet test test/WalletFramework.Oid4Vc.Tests --configuration $BUILD_CONFIG --no-restore --no-build
7676
dotnet test test/WalletFramework.SdJwtVc.Tests --configuration $BUILD_CONFIG --no-restore --no-build
7777
dotnet test test/WalletFramework.SdJwtLib.Tests --configuration $BUILD_CONFIG --no-restore --no-build
78+
dotnet test test/WalletFramework.Storage.Tests --configuration $BUILD_CONFIG --no-restore --no-build
7879
7980
- name: Pack WalletFramework
8081
run: dotnet pack $SOLUTION --configuration $BUILD_CONFIG -p:Version=$APP_VERSION --no-build --output .
8182

82-
- name: Publish to NuGet (main and release branches only)
83-
if: env.IS_PULL_REQUEST == 'false' && (env.IS_MAIN_BRANCH == 'true' || env.IS_RELEASE_BRANCH == 'true')
83+
- name: Publish to NuGet
84+
if: env.IS_PULL_REQUEST == 'false' && (env.IS_MAIN_BRANCH == 'true' || env.IS_RELEASE_BRANCH == 'true' || env.IS_DEVELOP_BRANCH == 'true')
8485
run: |
8586
echo 'BUILD NUGET'
8687
# TODO: Add the nuget push after the pipeline functionality is fully tested.

0 commit comments

Comments
 (0)