diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index f1550b09..6df01e27 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -60,7 +60,7 @@ jobs: upload-report: false - name: Upload test report - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v3-node20 with: name: Test Report path: ${{ github.workspace }}/reports/test-result.html @@ -90,18 +90,34 @@ jobs: mkdir -v -p build/windows ${{ steps.setup-godot.outputs.godot_bin }} --headless --verbose --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe zip -r Windows.zip build/windows + + - name: List files + run: | ls -la pwd - echo ${{ github.workspace }} - - name: Upload build to Itch - uses: https://github.com/Oval-Tutu/publish-to-itch-with-butler.git@main - with: - api-key: ${{ secrets.BUTLER_TOKEN }} - itch_user: ${{ env.ITCHIO_USERNAME }} - itch_game: ${{ env.ITCHIO_GAMEID }} - channel: windows - package: Windows.zip - version: ${{ needs.BumpTag.outputs.tag_name }} + + - name: Setup Butler + shell: bash + env: + BUTLER_API_KEY: ${{ secrets.BUTLER_TOKEN }} + run: | + mkdir ./tools 2>/dev/null || true + pushd tools + curl -sSLfo ./butler.zip "https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default" + unzip butler.zip + chmod +x ./butler + popd + ./tools/butler -V + + - name: Upload to itch.io + shell: bash + env: + BUTLER_API_KEY: ${{ secrets.BUTLER_TOKEN }} + run: | + versionArgument="--userversion ${{ needs.BumpTag.outputs.tag_name }}" + ./tools/butler push \ + "Windows.zip" \ + ${{ env.ITCHIO_USERNAME }}/${{ env.ITCHIO_GAMEID }}:windows ${versionArgument} # - name: Upload to Itch # uses: KikimoraGames/itch-publish@v0.0.3