1- name : create-release-mac
1+ name : create-release-windows
22
33on :
44 push :
@@ -18,63 +18,83 @@ permissions:
1818jobs :
1919 build :
2020 runs-on : windows-latest
21+ defaults :
22+ run :
23+ shell : msys2 {0}
2124
2225 steps :
26+ - uses : msys2/setup-msys2@v2
27+ with :
28+ update : true
29+ install : >-
30+ curl
31+ git
32+ gcc
33+ - uses : actions/setup-node@v4
34+ with :
35+ node-version : ' 22'
36+ - name : Debug node
37+ run : |
38+ export PATH="${PATH}:/c/hostedtoolcache/windows/node/22.21.1/x64"
39+ node --version
40+ npm --version
2341 - name : Checkout
2442 uses : actions/checkout@v4
25- with :
26- ref : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
43+ - name : Install Node modules
44+ run : npm install
45+ - name : Debug node
46+ run : |
47+ ./node_modules/.bin/postcss.cmd --help
48+ ./node_modules/.bin/webpack.cmd --help
49+ ./node_modules/.bin/postcss.cmd ./frontend/stylesheets/tailwindbase.css --config . --output ./build/compiled-frontend-resources/assets/stylesheets/tailwindbase.css
2750 - uses : actions/setup-java@v4
2851 with :
2952 distribution : temurin
3053 java-version : ' 21'
3154 cache : ' gradle'
32- - uses : actions/setup-node@v4
33- with :
34- node-version : ' 22'
3555 - name : Setup Gradle
3656 uses : gradle/actions/setup-gradle@v3
3757 with :
3858 cache-read-only : ${{ github.ref != 'refs/heads/main' }}
3959 - name : Get version
4060 id : version
41- run : echo "VERSION=$(./gradlew -q printInternalVersion)" >> "$GITHUB_OUTPUT"
61+ run : |
62+ version=$(./gradlew -q printInternalVersion)
63+ echo "VERSION=$version" >> $GITHUB_OUTPUT
4264 - name : Validate the tag name
4365 run : |
44- if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ ! -z "${{ github.event.inputs.tag }}" ]; then
66+ if [[ "${{ github.event_name }}" == "workflow_dispatch" && ! -z "${{ github.event.inputs.tag }}" ] ]; then
4567 TAG=${{ github.event.inputs.tag }}
4668 else
4769 TAG=${GITHUB_REF#refs/tags/}
4870 fi
4971 if [[ ! "$TAG" =~ ^v ]]; then
5072 echo "Error: Tag ($TAG) must start with 'v'"
5173 exit 1
52- fi
74+ fi
5375 if [[ ! $TAG == v${{ steps.version.outputs.VERSION }} ]]; then
5476 echo "Error: Git tag version ($TAG) doesn't match project version (v${{ steps.version.outputs.VERSION }})"
5577 exit 1
5678 fi
57- - name : Install Node modules
58- run : npm install
5979 - name : Download CodeSignTool and extract
6080 run : |
6181 $ProgressPreference = 'SilentlyContinue'
6282 New-Item -ItemType Directory -Force -Path "./build-tools/codesign"
6383 Invoke-WebRequest -Uri "https://www.ssl.com/download/codesigntool-for-windows/" -OutFile "./build-tools/CodeSignTool.zip"
6484 Expand-Archive -Path "./build-tools/CodeSignTool.zip" -DestinationPath "./build-tools/codesign" -Force
6585 Remove-Item "./build-tools/CodeSignTool.zip"
66- shell : pwsh
86+ shell : powershell
6787 - name : Download wixtool 3 and extract
6888 run : |
6989 $ProgressPreference = 'SilentlyContinue'
7090 New-Item -ItemType Directory -Force -Path "./build-tools/wixtool"
7191 Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip" -OutFile "./build-tools/wix-binaries.zip"
7292 Expand-Archive -Path "./build-tools/wix-binaries.zip" -DestinationPath "./build-tools/wixtool" -Force
7393 Remove-Item "./build-tools/wix-binaries.zip"
74- shell : pwsh
94+ shell : powershell
7595 - name : Build an MSI
7696 run : |
77- export PATH="$PATH:$PWD/build-tools/wixtool"
97+ export PATH="${ PATH} :$PWD/build-tools/wixtool"
7898 ./gradlew clean jpackage
7999 env :
80100 CODESIGN_TOOL_DIR : " ./build-tools/codesign"
0 commit comments