diff --git a/.gitea/workflows/love2d-release.yaml b/.gitea/workflows/love2d-release.yaml new file mode 100644 index 0000000..1d649f5 --- /dev/null +++ b/.gitea/workflows/love2d-release.yaml @@ -0,0 +1,39 @@ +name: LÖVE Game - Publish + +on: + workflow_call: + inputs: + ITCH_USERNAME: + required: true + ITCH_GAME_ID: + required: true + secrets: + BUTLER_API_KEY: + required: true + +jobs: + Deploy: + name: Upload to Itch + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + channel: # TODO + - win64 + - love + + name: Deploy - Itch.io ${{ matrix.template }} + steps: + - uses: actions/download-artifact@v3 + with: + name: ${{ matrix.channel }} + path: build/${{ matrix.channel }} + - uses: KikimoraGames/itch-publish@v0.0.3 + with: + butlerApiKey: ${{ secrets.BUTLER_API_KEY }} + gameData: ./build/${{ matrix.template }} + itchUsername: ${{ inputs.ITCH_USERNAME }} + itchGameId: ${{ inputs.ITCH_GAME_ID }} + buildChannel: ${{ matrix.channel }} + buildNumber: ${{ needs.version.outputs.version_hash }} # TODO diff --git a/.gitea/workflows/love2d.yaml b/.gitea/workflows/love2d.yaml index 243a492..916a4fc 100644 --- a/.gitea/workflows/love2d.yaml +++ b/.gitea/workflows/love2d.yaml @@ -1,4 +1,4 @@ -name: LÖVE Game +name: LÖVE Game - Build on: workflow_call: