diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27debdec..01a22c61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,6 +72,23 @@ jobs: name: unearth-${{ steps.version_info.outputs.FULL_VERSION }}-windows path: ./bin/ExportWindows/ + + - name: Install Butler + if: startsWith(github.ref, 'refs/tags/') + run: | + curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default + unzip butler.zip + chmod +x butler + ./butler -V + + - name: Upload to itch.io + if: startsWith(github.ref, 'refs/tags/') + env: + BUTLER_API_KEY: ${{ secrets.ITCHIO_API_KEY }} + run: | + ./butler push ./bin/ExportLinux/Unearth rainlizard/unearth:linux-${{ steps.version_info.outputs.FULL_VERSION }} + ./butler push ./bin/ExportWindows/Unearth rainlizard/unearth:windows-${{ steps.version_info.outputs.FULL_VERSION }} + - name: Zip Linux Build for Release if: startsWith(github.ref, 'refs/tags/') run: |