File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 51
51
with :
52
52
name : build_${{ inputs.runner }}
53
53
path : dist/
54
- - name : ' Debug: Print Directory'
55
- run : ls -lR
54
+ - name : Set the environment in order to Build for correct platform
55
+ run : |
56
+ if [ "${{ runner.os == 'Windows'}}" ]; then
57
+ echo "$BUILD_FOR_PLATFORM=--windows nsis:x64" >> $GITHUB_ENV
58
+ echo "$FILE_POSTFIX=exe"
59
+ elif [ "${{ runner.os == 'macOS'}}" ]; then
60
+ echo "$BUILD_FOR_PLATFORM=--x64" >> $GITHUB_ENV
61
+ echo "$FILE_POSTFIX=dmg"
62
+ else
63
+ echo "$BUILD_FOR_PLATFORM=" >> $GITHUB_ENV
64
+ echo "$FILE_POSTFIX=AppImage"
65
+ fi
66
+ - name : Run Electron Builder
67
+ run : npx electron-builder -p never $BUILD_FOR_PLATFORM
68
+ - name : Publish built artifact
69
+ uses : actions/upload-artifact@v3
70
+ with :
71
+ name : nRF Connect for Desktop
72
+ path : " release/*.$FILE_POSTFIX"
73
+ retention-days : 7
56
74
57
75
58
76
You can’t perform that action at this time.
0 commit comments