From 9c1f3aaea442bb38f6d9bda11d2ab6812224240f Mon Sep 17 00:00:00 2001 From: meoowe <96916064+meoowe@users.noreply.github.com> Date: Sun, 1 Dec 2024 21:18:35 +0000 Subject: [PATCH] Create export.yml --- .github/workflows/export.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/export.yml diff --git a/.github/workflows/export.yml b/.github/workflows/export.yml new file mode 100644 index 0000000..04c14e8 --- /dev/null +++ b/.github/workflows/export.yml @@ -0,0 +1,39 @@ +# Whenever a tag push matching pattern "v*" then run the job +on: + push: + +jobs: + # job id, can be anything + export_game: + # Always use ubuntu-latest for this action + runs-on: ubuntu-latest + # Add permission for release creation. Can be made narrower according to your needs + permissions: write-all + # Job name, can be anything + name: Export Game + steps: + # Always include the checkout step so that + # your project is available for Godot to export + - name: checkout + uses: actions/checkout@v4 + + - name: export game + id: export + # Use latest version (see releases for all versions) + uses: firebelley/godot-export@v6.0.0 + with: + # Defining all the required inputs + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz + relative_project_path: ./ + archive_output: true + + # This release action has worked well for me. However, you can most likely use any release action of your choosing. + # https://github.com/ncipollo/release-action + - name: create release + uses: ncipollo/release-action@v1.14.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true + tag: ${{ github.ref_name }} + artifacts: ${{ steps.export.outputs.archive_directory }}/*