File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed
Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 77 runs-on : windows-latest
88 steps :
99 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11- with :
12- repository : ' mendixlabs/mendix-gradle-plugin'
13- path : ' mendix-gradle-plugin'
14- ref : ' 114bde309b52b037583d95a9beffee18eb71b65f'
15- ssh-key : ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
16- ssh-strict : false
17-
1810 - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 4.7.1
1911 with :
2012 distribution : ' adopt'
2113 java-version : ' 21'
2214 - uses : gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 4.3.1
23-
24- - name : Build mendix-gradle-plugin
25- working-directory : mendix-gradle-plugin
26- run : |
27- echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
28- ./gradlew build publishToMavenLocal
29-
3015 - name : Define MODULE_VERSION
3116 run : |
3217 $env:MODULE_VERSION=$(./gradlew -q printModuleVersion)
3318 echo ("MODULE_VERSION=" + $env:MODULE_VERSION) >> $env:GITHUB_ENV
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3421 - name : " Detected module version"
3522 run : echo $env:MODULE_VERSION
3623 - name : Build module
3724 run : ./gradlew buildModule
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3827 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3928 with :
4029 name : PushNotifications-${{ env.MODULE_VERSION }}.mpk
Original file line number Diff line number Diff line change 2121 uses : snyk/actions/gradle@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
2222 env :
2323 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ ORG_GRADLE_PROJECT_gprusername : ${{ env.GITHUB_ACTOR }}
26+ ORG_GRADLE_PROJECT_gprpassword : ${{ secrets.GITHUB_TOKEN }}
2427 with :
2528 command : ${{ inputs.command }}
2629 args : --project-name="gradle${{ inputs.suffix }}" --file=module/build.gradle
Original file line number Diff line number Diff line change 11pluginManagement {
22 repositories {
3- mavenLocal()
3+ maven {
4+ url = uri(" https://maven.pkg.github.com/mendix/MxPushNotifications" )
5+ credentials {
6+ username System . getenv(" GITHUB_ACTOR" ) ?: " $gprusername "
7+ password System . getenv(" GITHUB_TOKEN" ) ?: " $gprpassword "
8+ }
9+ }
410 mavenCentral()
511 gradlePluginPortal()
612 }
You can’t perform that action at this time.
0 commit comments