forked from simonmartyr/MxPushNotifications
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (57 loc) · 2.11 KB
/
build-module.yml
File metadata and controls
60 lines (57 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Export module package
on:
push:
paths:
- "module/**"
pull_request:
paths:
- "module/**"
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: 'mendixlabs/mendix-gradle-plugin'
path: 'mendix-gradle-plugin'
ref: '114bde309b52b037583d95a9beffee18eb71b65f'
ssh-key: ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
ssh-strict: false
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #4.7.1
with:
distribution: 'adopt'
java-version: '21'
- uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 #4.3.1
- name: Build mendix-gradle-plugin
working-directory: mendix-gradle-plugin
run: |
echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
./gradlew build publishToMavenLocal
- name: Define MODULE_VERSION
run: |
$env:MODULE_VERSION=$(./gradlew -q printModuleVersion)
echo "Detected module version: ${{ env.MODULE_VERSION }}"
echo ("MODULE_VERSION=" + $env:MODULE_VERSION) >> $env:GITHUB_ENV
- name: Create output directory
run: mkdir out
- name: Build module
run: ./gradlew exportModule
# - name: Create release
# uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# name: Marketplace release v${{ env.MODULE_VERSION }}
# tag_name: v${{ env.MODULE_VERSION }}
# body: |
# (insert release notes)
# draft: true
# prerelease: false
# files: |
# module/dist/PushNotifications-${{ env.MODULE_VERSION }}.mpk
- name: Archive results
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
path: module/dist/*