File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ allprojects {
2+ pluginManager. withPlugin( ' maven-publish' ) {
3+ publishing {
4+ repositories {
5+ maven {
6+ name = " GitHubPackages"
7+ url = " https://maven.pkg.github.com/mendix/MxPushNotifications"
8+ credentials {
9+ username = System . getenv(" GITHUB_ACTOR" )
10+ password = System . getenv(" GITHUB_TOKEN" )
11+ }
12+ }
13+ }
14+ }
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ name : Publish Mendix Gradle plugin
2+ on :
3+ workflow_dispatch :
4+ jobs :
5+ publish :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9+ with :
10+ repository : ' mendixlabs/mendix-gradle-plugin'
11+ ref : ' 114bde309b52b037583d95a9beffee18eb71b65f'
12+ ssh-key : ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
13+ ssh-strict : false
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+ with :
16+ path : repo
17+ sparse-checkout : .github/gradle
18+ - run : cp repo/.github/gradle/publish-mendix-gradle-plugin.gradle ./
19+ - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 4.7.1
20+ with :
21+ distribution : ' adopt'
22+ java-version : ' 21'
23+ - uses : gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 4.3.1
24+ - name : Build mendix-gradle-plugin
25+ run : |
26+ echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
27+ ./gradlew -I publish-mendix-gradle-plugin.gradle build publish
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments