From 6e92ca175a5279cb20642888eef4bcd72e1cd2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 12 Nov 2021 00:15:08 +0100 Subject: [PATCH] Add deployment workflow --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++++++++++++++++ export_presets.cfg | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0199e4b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: "Deploy to Itch.io" + +on: + push: + branches: [ main ] + workflow_dispatch: + +env: + GODOT_VERSION: 3.4 + +jobs: + export: + strategy: + matrix: + target: [[windows, Windows Desktop], [linux, Linux/X11], [mac, Mac OSX], [html, HTML5]] + runs-on: ubuntu-latest + container: + image: barichello/godot-ci:3.4 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup export templates + run: | + mkdir -v -p ~/.local/share/godot/templates + mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable + - name: Build game + env: + EXPORT_DIR_NAME: ${{ matrix.target[0] }} + EXPORT_TARGET_NAME: ${{ matrix.target[1] }} + run: | + mkdir -v -p build/$EXPORT_DIR_NAME + godot -v --export "$EXPORT_TARGET_NAME" + - name: Itch.io deploy + env: + EXPORT_DIR_NAME: ${{ matrix.target[0] }} + run: | + butler push ./build/$EXPORT_DIR_NAME $ITCHIO_USERNAME/$ITCHIO_GAME:$EXPORT_DIR_NAME diff --git a/export_presets.cfg b/export_presets.cfg index 3fff551..3744c08 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -42,7 +42,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="build/macos/bugged-racing.zip" +export_path="build/mac/bugged-racing.zip" script_export_mode=1 script_encryption_key=""