Skip to content

Commit 91ad874

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

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/release-windows_x64.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3941
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
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 push nipples-clone-v${{github.event.inputs.git-tag}}.zip mwttg/nibbles-clone:win --userversion ${{github.event.inputs.git-tag}}

0 commit comments

Comments
 (0)