Update deploy_on_itch.yml #7
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
name: deploy on itch | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: create out directory | |
run: mkdir out | |
- name: export game | |
uses: firebelley/[email protected] | |
with: | |
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_linux.x86_64.zip | |
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_export_templates.tpz | |
relative_project_path: ./ | |
use_preset_export_path: true # This should be ./out/index.html for the web release | |
- name: zip game | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: web.zip | |
path: . | |
directory: ./out/ | |
- name: upload game to Itch.io | |
uses: robpc/[email protected] | |
with: | |
path: ./out/web.zip | |
project: acagamics/acagame | |
channel: web | |
api-key: ${{secrets.ITCH_API_KEY}} |