Created
March 6, 2024 21:14
-
-
Save VojtaStruhar/08b0881cd312476bd7a910fb79e5b4bc to your computer and use it in GitHub Desktop.
Publish a Godot 4 game to Itch.io with Github Actions
This file contains hidden or 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
name: Publish to Itch.io | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Godot Export | |
id: export | |
uses: firebelley/[email protected] | |
with: | |
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_linux.x86_64.zip | |
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_export_templates.tpz | |
relative_project_path: ./ | |
archive_output: true | |
# Use the GitHub Actions workflow cache to cache the Godot export templates and Godot executable. | |
# Helps speed up builds by not having to download them every time. | |
cache: true | |
env: | |
GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | |
- name: Publish to Itch | |
uses: Ayowel/[email protected] | |
with: | |
butler_key: ${{secrets.ITCHIO_TOKEN}} | |
itch_user: struhy-xd | |
itch_game: painted-mosaics | |
version: ${{ github.ref_name }} | |
files: "${{ steps.export.outputs.archive_directory }}/mosaics-web.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment