Skip to content

Commit 1c1092a

Browse files
committed
Modify GitHub action for windows release
1 parent f24b792 commit 1c1092a

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/release-windows_x64.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
git-tag:
77
description: 'The git tag which which is used for the release'
88
required: true
9-
default: 1.0.0
9+
default: 1.0.2
1010

1111
jobs:
1212
release-windows_x64:
13-
runs-on: windows-latest
13+
runs-on: windows-2022
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
@@ -28,20 +28,22 @@ jobs:
2828
- name: Maven Build
2929
run: mvn clean install -Pnative
3030
- name: Download itch.io Butler
31-
run: curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
31+
run: curl -L -o butler.zip https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default
3232
- name: Unzip itch.io Butler
3333
run: unzip butler.zip
3434
- name: Make Executable
3535
run: chmod +x butler
36+
- name: list directory
37+
run: dir
3638
- name: Create release Folder
3739
run: mkdir nibbles-clone-v${{github.event.inputs.git-tag}}
3840
- name: Copy Assets to release Folder
39-
run: Copy-Item -Path "D:\a\nibbles-clone\nibbles-clone\data\*" -Destination "D:\a\nibbles-clone\nibbles-clone\nibbles-clone-v${{github.event.inputs.git-tag}}" -Recurse
41+
run: Copy-Item -Path "D:\a\nibbles-clone\nibbles-clone\data\*" -Destination "D:\a\nibbles-clone\nibbles-clone\nibbles-clone-v${{github.event.inputs.git-tag}}\data" -Recurse
4042
- name: Copy Binaries to release Folder
4143
run: Copy-Item "D:\a\nibbles-clone\nibbles-clone\target\nibbles-clone.exe" -Destination "D:\a\nibbles-clone\nibbles-clone\nibbles-clone-v${{github.event.inputs.git-tag}}"
4244
- name: Zip release folder
43-
run: Compress-Archive -Path "D:\a\nibbles-clone\nibbles-clone\nibbles-clone-v${{github.event.inputs.git-tag}}" -Destination ""D:\a\nibbles-clone\nibbles-clone\nipples-cone-v${{github.event.inputs.git-tag}}.zip"
44-
- name: Test Ls
45-
run: ls
46-
- name: l2
47-
run: ls .\nibbles-clone-v${{github.event.inputs.git-tag}}\
45+
run: Compress-Archive -Path "D:\a\nibbles-clone\nibbles-clone\nibbles-clone-v${{github.event.inputs.git-tag}}" -Destination "D:\a\nibbles-clone\nibbles-clone\nipples-clone-v${{github.event.inputs.git-tag}}.zip"
46+
- name: Deploy to itch.io
47+
env:
48+
BUTLER_API_KEY: ${{secrets.BUTLER_API_KEY}}
49+
run: .\butler.exe push nipples-clone-v${{github.event.inputs.git-tag}}.zip mwttg/nibbles-clone:win --userversion ${{github.event.inputs.git-tag}}

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
</executions>
103103
<configuration>
104104
<imageName>nibbles-clone</imageName>
105+
<buildArgs>
106+
<buildArg>-march=compatibility</buildArg>
107+
</buildArgs>
105108
</configuration>
106109
</plugin>
107110
<plugin>

0 commit comments

Comments
 (0)