From 7836d84c4c386fc1fea676d526f6c06378e82970 Mon Sep 17 00:00:00 2001 From: Andi Date: Wed, 12 Jul 2023 23:06:57 +0200 Subject: [PATCH] Update workflow for Godot 4.1 --- .github/workflows/godot-export.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/godot-export.yml b/.github/workflows/godot-export.yml index 7e8ee97..a79c922 100644 --- a/.github/workflows/godot-export.yml +++ b/.github/workflows/godot-export.yml @@ -3,8 +3,9 @@ name: "godot export" on: push: branches: - - main - - 4.0 + - "main" + - "4.0" + - "v*" # on: # push: # tags: @@ -21,7 +22,7 @@ jobs: # Always include the checkout step so that # your project is available for Godot to export - name: checkout - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v3.3.0 # Ensure that you get the entire project history with: fetch-depth: 0 @@ -83,28 +84,37 @@ jobs: - name: export godot # Use latest version (see releases for all versions) - uses: firebelley/godot-export@v3.0.0 + uses: firebelley/godot-export@v5.2.0 with: # Base version. Patch versions are incremented when this action runs. base_version: 0.0.1 # base_version: ${{ steps.tag_version.outputs.TAG_VERSION}} # Defining all the required inputs # I used the latest version of Godot in this example - godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/alpha13/Godot_v4.0-alpha13_linux_headless.64.zip - godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/alpha13/Godot_v4.0-alpha13_export_templates.tpz + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.1/Godot_v4.1-stable_linux.x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.1/Godot_v4.1-stable_export_templates.tpz # https://downloads.tuxfamily.org/godotengine/3.4.1/rc1/ relative_project_path: ./godot - archive_single_release_output: false - # export_debug: false + cache: true + # archive_single_release_output: false export_debug: false - archive_export_output: true + archive_output: true generate_release_notes: true - create_release: true + # create_release: true use_preset_export_path: true # relative_export_path: "build" wine_path: ${{ steps.wine_install.outputs.WINE_PATH }} + use_godot_3: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: create release + uses: ncipollo/release-action@v1.12.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true + tag: ${{ github.ref_name }} + artifacts: ${{ steps.export.outputs.archive_directory }}/* - name: Deploy to GitHub Pages 🚀 uses: JamesIves/github-pages-deploy-action@releases/v3