Build + Deploy #14
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: 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 | |