-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (39 loc) · 1.16 KB
/
upload-itchio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-FileCopyrightText: 2024 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:
godot-verions: 3.6
working-directory: $WORKING_DIRECTORY
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: pocket-broomball
channel: html5