File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ jobs:
2525 - os : windows-2019
2626 triplet : x64-windows
2727 platform-name : windows.x64
28+ butler-url : https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default
2829 - os : macos-12
2930 triplet : x64-osx
3031 platform-name : macos.x64
32+ butler-url : https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
3133 - os : ubuntu-20.04
3234 triplet : x64-linux
3335 platform-name : linux.x64
36+ butler-url : https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
3437
3538 env :
3639 # Indicates the CMake build directory where project files and binaries are being produced.
@@ -117,3 +120,18 @@ jobs:
117120 file_glob : true
118121 tag : ${{ github.ref }}
119122 overwrite : true
123+ - name : Install Butler
124+ if : github.ref == 'refs/heads/main'
125+ run : |
126+ mkdir ~/bin
127+ cd ~/bin
128+ curl -L -o butler.zip ${{ matrix.butler-url }}
129+ unzip butler.zip
130+ chmod +x butler
131+ echo "~/bin" >> $GITHUB_PATH
132+ ~/bin/butler -V
133+ - name : Upload to Itch
134+ if : github.ref == 'refs/heads/main'
135+ env :
136+ BUTLER_API_KEY : ${{ secrets.BUTLER_API_KEY }}
137+ run : butler push dist/${{ env.archive-name }} hexdecimal/${{ env.project-name }}:${{ matrix.platform-name }}-latest
You can’t perform that action at this time.
0 commit comments