Game Jam Releases #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release workflow for game james | |
name: Game Jam Releases | |
on: | |
push: | |
tags: | |
- v*.* | |
workflow_dispatch: | |
inputs: | |
release-github: | |
description: 'Release for github' | |
type: boolean | |
default: false | |
release-itch: | |
description: 'Release for itch.io' | |
type: boolean | |
default: false | |
jobs: | |
build-info: | |
runs-on: ubuntu-latest | |
outputs: | |
channels: ${{ steps.build-data.outputs.channels }} | |
steps: | |
- id: build-data | |
run: | | |
CHANNELS='"windows", "linux", "web"' | |
if [ $RELEASE_ITCH = false ] && [ $RELEASE_GITHUB = false ]; then | |
CHANNELS='' | |
fi | |
echo "channels=[$CHANNELS]" >> $GITHUB_OUTPUT | |
env: | |
REF: ${{ github.ref_name }} | |
RELEASE_ITCH: ${{ inputs.release-itch }} | |
RELEASE_GITHUB: ${{ inputs.release-github }} | |
build-godot: | |
uses: kuma-gee/actions/.github/workflows/godot-build.yml@main | |
needs: build-info | |
if: ${{ needs.build-info.outputs.channels != '[]' }} | |
with: | |
channels: ${{ needs.build-info.outputs.channels }} | |
godot-version: 4.3 | |
project-path: godot | |
secrets: inherit | |
release-itch: | |
uses: kuma-gee/actions/.github/workflows/itch-release.yml@main | |
needs: [build-godot, build-info] | |
if: ${{ inputs.release-itch }} | |
with: | |
channels: ${{ needs.build-info.outputs.channels }} | |
game: ${{ needs.build-godot.outputs.game }} | |
itch-user: kuma-gee | |
secrets: | |
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | |
release-github: | |
uses: kuma-gee/actions/.github/workflows/github-release.yml@main | |
needs: build-godot | |
if: ${{ inputs.release-github }} |