From fcaf99c6fb56a2a3ea2b0cc19b81cdd1d26f14df Mon Sep 17 00:00:00 2001 From: Raffaele Lungarella Date: Mon, 22 Jul 2024 21:57:32 +0200 Subject: [PATCH] feat: added workflow for build and deploy --- .github/workflows/build_and_deploy.yaml | 31 +++++++++++++++++++++ export_presets.cfg | 37 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/build_and_deploy.yaml create mode 100644 export_presets.cfg diff --git a/.github/workflows/build_and_deploy.yaml b/.github/workflows/build_and_deploy.yaml new file mode 100644 index 0000000..beede60 --- /dev/null +++ b/.github/workflows/build_and_deploy.yaml @@ -0,0 +1,31 @@ +name: Build Godot Project + +on: + push: {} + +jobs: + Godot: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Godot Export + id: export + uses: firebelley/godot-export@v5.2.1 + with: + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_linux.x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_export_templates.tpz + relative_project_path: ./ + archive_output: true + cache: true + env: + GITHUB_TOKEN: ${{secrets.GH_TOKEN}} + - name: Publish to Itch + uses: Ayowel/butler-to-itch@v1.0.0 + with: + butler_key: ${{secrets.ITCHIO_TOKEN}} + itch_user: stampede-studios + itch_game: star-knight + version: ${{ github.ref_name }} + files: "${{ steps.export.outputs.archive_directory }}/-web.zip" \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..8557963 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,37 @@ +[preset.0] + +name="star-knight-web" +platform="Web" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="../../../Desktop/index.html" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +variant/extensions_support=false +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/export_icon=true +html/custom_html_shell="" +html/head_include="" +html/canvas_resize_policy=2 +html/focus_canvas_on_start=true +html/experimental_virtual_keyboard=false +progressive_web_app/enabled=false +progressive_web_app/offline_page="" +progressive_web_app/display=1 +progressive_web_app/orientation=0 +progressive_web_app/icon_144x144="" +progressive_web_app/icon_180x180="" +progressive_web_app/icon_512x512="" +progressive_web_app/background_color=Color(0, 0, 0, 1)