version 4.1.5 #57
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
# SPDX-FileCopyrightText: 2023 Simon Dalvai <info@simondalvai.org> | |
# SPDX-License-Identifier: CC0-1.0 | |
name: itch.io upload | |
on: | |
push: | |
paths: | |
- "version" | |
- ".github/workflows/upload-itchio.yml" | |
- "export_presets.html.example" | |
env: | |
WORKING_DIRECTORY: game | |
jobs: | |
deploy: | |
if: github.ref == 'refs/heads/prod' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Delete iOS icons | |
run: rm -rf $WORKING_DIRECTORY/AppIcons | |
- name: Create export directory | |
run: mkdir html5 | |
- name: Create export_presets.cfg | |
run: cp game/export_presets.html.example game/export_presets.cfg | |
- name: Godot HTML5 export | |
uses: dulvui/godot-html-export@v1 | |
with: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
godot-version: 3.6 | |
create-export-preset-cfg: false | |
- name: Upload to itch.io | |
uses: dulvui/itchio-butler-upload@v0.0.1 | |
with: | |
working-directory: html5 | |
api-key: ${{ secrets.ITCHIO_API_KEY }} | |
user: simondalvai | |
game: ball2box | |
channel: html5 | |