Skip to content

Commit d4f7d9a

Browse files
run on Windows
1 parent 1e08723 commit d4f7d9a

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

.github/workflows/build-module.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,52 @@ 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
37+
$env:MODULE_VERSION=$(./gradlew -q printModuleVersion)
38+
echo "Detected module version: ${{ env.MODULE_VERSION }}"
39+
echo ("MODULE_VERSION=" + $env:MODULE_VERSION) >> $env:GITHUB_ENV
3840
- name: Create output directory
39-
run: mkdir $GITHUB_WORKSPACE/out
41+
run: mkdir out
4042
- name: Build module
4143
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
44+
# - name: Create release
45+
# uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
46+
# with:
47+
# token: ${{ secrets.GITHUB_TOKEN }}
48+
# name: Marketplace release v${{ env.MODULE_VERSION }}
49+
# tag_name: v${{ env.MODULE_VERSION }}
50+
# body: |
51+
# (insert release notes)
52+
# draft: true
53+
# prerelease: false
54+
# files: |
55+
# module/dist/PushNotifications-${{ env.MODULE_VERSION }}.mpk
5456
- name: Archive results
5557
if: ${{ always() }}
5658
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5759
with:
58-
name: Results
59-
path: ${{ github.workspace }}/out/*
60+
path: module/dist/*

0 commit comments

Comments
 (0)