Skip to content

Commit 08e5cfc

Browse files
run on Windows
1 parent 1e08723 commit 08e5cfc

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.github/workflows/build-module.yml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,50 @@ on:
99
workflow_dispatch:
1010
jobs:
1111
build:
12-
runs-on: ubuntu-latest
12+
runs-on: windows-latest
1313
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
with:
17+
repository: 'mendixlabs/mendix-gradle-plugin'
18+
path: 'mendix-gradle-plugin'
19+
ref: '114bde309b52b037583d95a9beffee18eb71b65f'
20+
ssh-key: ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
21+
ssh-strict: false
22+
1423
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #4.7.1
1524
with:
1625
distribution: 'adopt'
1726
java-version: '21'
1827
- uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 #4.3.1
1928

20-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
21-
with:
22-
repository: 'mendixlabs/mendix-gradle-plugin'
23-
path: 'mendix-gradle-plugin'
24-
ref: '114bde309b52b037583d95a9beffee18eb71b65f'
25-
ssh-key: ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
2629
- name: Build mendix-gradle-plugin
30+
working-directory: mendix-gradle-plugin
2731
run: |
28-
cd mendix-gradle-plugin
2932
echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
3033
./gradlew build publishToMavenLocal
3134
32-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3335
- name: Define MODULE_VERSION
3436
run: |
35-
MODULE_VERSION=$(./gradlew -q printModuleVersion)
36-
echo "Detected module version: $MODULE_VERSION"
37-
echo "MODULE_VERSION=$MODULE_VERSION" >> $GITHUB_ENV
38-
- name: Create output directory
39-
run: mkdir $GITHUB_WORKSPACE/out
37+
$env:MODULE_VERSION=$(./gradlew -q printModuleVersion)
38+
echo ("MODULE_VERSION=" + $env:MODULE_VERSION) >> $env:GITHUB_ENV
39+
- name: "Detected module version"
40+
run: echo $env:MODULE_VERSION
4041
- name: Build module
4142
run: ./gradlew exportModule
42-
- name: Create release
43-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
44-
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
name: Marketplace release v${{env.MODULE_VERSION}}
47-
tag_name: v${{env.MODULE_VERSION}}
48-
body: |
49-
(insert release notes)
50-
draft: true
51-
prerelease: false
52-
files: |
53-
module/dist/PushNotifications-${{env.MODULE_VERSION}}.mpk
54-
- name: Archive results
55-
if: ${{ always() }}
56-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
43+
# - name: Create release
44+
# uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
45+
# with:
46+
# token: ${{ secrets.GITHUB_TOKEN }}
47+
# name: Marketplace release v${{ env.MODULE_VERSION }}
48+
# tag_name: v${{ env.MODULE_VERSION }}
49+
# body: |
50+
# (insert release notes)
51+
# draft: true
52+
# prerelease: false
53+
# files: |
54+
# module/dist/PushNotifications-${{ env.MODULE_VERSION }}.mpk
55+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5756
with:
58-
name: Results
59-
path: ${{ github.workspace }}/out/*
57+
name: PushNotifications-${{ env.MODULE_VERSION }}.mpk
58+
path: module/dist/PushNotifications-${{ env.MODULE_VERSION }}.mpk

.github/workflows/build-widget.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
run: npm run build
2727
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2828
with:
29+
name: MxPushNotifications.mpk
2930
path: widget/dist/MxPushNotifications.mpk

0 commit comments

Comments
 (0)