-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 969 Bytes
/
main.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
name: Build + Deploy
on: workflow_dispatch
env:
ITCHIO_USERNAME: antimundo
ITCHIO_GAME: infinigrass
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
GODOT_VERSION: 4.2.1 #if you change it, remember to update the image version (line 15)
jobs:
web:
name: Build and deploy to itch.io
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:4.2.1
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Web Build
run: |
mkdir build
godot --export-release --headless "Web" ./build/index.html
- name: Itch.io Deploy
run: |
ls ./build
butler push ./build $ITCHIO_USERNAME/$ITCHIO_GAME:html5