File tree Expand file tree Collapse file tree 9 files changed +228
-247
lines changed
Expand file tree Collapse file tree 9 files changed +228
-247
lines changed Original file line number Diff line number Diff line change 1515* .PDF diff =astextplain
1616* .rtf diff =astextplain
1717* .RTF diff =astextplain
18+
19+ # Linux start script should use lf
20+ /gradlew text eol =lf
21+
22+ # These are Windows script files and should use crlf
23+ * .bat text eol =crlf
24+
25+ # Binary files should be left untouched
26+ * .jar binary
Original file line number Diff line number Diff line change 1+ name : Export module package
2+ on :
3+ push :
4+ paths :
5+ - " module/**"
6+ pull_request :
7+ paths :
8+ - " module/**"
9+ workflow_dispatch :
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+ - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 4.7.1
16+ with :
17+ distribution : ' adopt'
18+ java-version : ' 21'
19+ - uses : gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 4.3.1
20+ - name : Define MODULE_VERSION
21+ run : |
22+ MODULE_VERSION=$(./gradlew -q printModuleVersion)
23+ echo "Detected module version: $MODULE_VERSION"
24+ echo "MODULE_VERSION=$MODULE_VERSION" >> $GITHUB_ENV
25+ - name : Create output directory
26+ run : mkdir $GITHUB_WORKSPACE/out
27+ - name : Build module
28+ run : ./gradlew exportModule
29+ - name : Create release
30+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
31+ with :
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ name : Marketplace release v${{env.MODULE_VERSION}}
34+ tag_name : v${{env.MODULE_VERSION}}
35+ body : |
36+ (insert release notes)
37+ draft : true
38+ prerelease : false
39+ files : |
40+ module/dist/PushNotifications-${{env.MODULE_VERSION}}.mpk
41+ - name : Archive results
42+ if : ${{ always() }}
43+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
44+ with :
45+ name : Results
46+ path : ${{ github.workspace }}/out/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ## Module usage
2+
13Please see [ Push Notifications Connector] ( https://docs.mendix.com/appstore/modules/push-notifications ) in the Mendix documentation for details.
4+
5+ ## Development
6+
7+ ### Widget
8+
9+ #### Requirements
10+
11+ - Node.js (v6+)
12+ - nvm (optional)
13+
14+ #### Setup
15+
16+ ``` bash
17+ cd widget
18+ npm i
19+ ```
20+
21+ #### Build
22+
23+ ``` bash
24+ npm run build
25+ ```
26+
27+ ### Module
28+
29+ #### Requirements
30+
31+ - JDK
32+
33+ #### Update user libs
34+
35+ ``` bash
36+ ./gradlew.bat updateUserLibs
37+ ```
38+
39+ #### Build module (mpk)
40+
41+ ``` bash
42+ ./gradlew.bat exportModule
43+ ```
44+
45+ Module package is placed in ` module/dist/PushNotifications-<version>.mpk `
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.10 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.13 -bin.zip
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments