Skip to content

Commit d2a7b57

Browse files
add workflow to publish mendix-gradle-plugin
1 parent c7b0060 commit d2a7b57

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 }}

0 commit comments

Comments
 (0)