From e69d07198fd37001b134cdd099a34a0b0d1ce449 Mon Sep 17 00:00:00 2001 From: Henrique Date: Tue, 7 May 2024 18:22:09 -0300 Subject: [PATCH] Add github action to export game --- .github/workflows/build_game.yaml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build_game.yaml diff --git a/.github/workflows/build_game.yaml b/.github/workflows/build_game.yaml new file mode 100644 index 0000000..ccead47 --- /dev/null +++ b/.github/workflows/build_game.yaml @@ -0,0 +1,41 @@ +# Whenever a tag push matching pattern "v*" then run the job +on: + push: + tags: + - "v*" + +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: Build Game + steps: + # Always include the checkout step so that + # your project is available for Godot to export + - name: checkout + uses: actions/checkout@v3.3.0 + + - name: export game + id: export + # Use latest version (see releases for all versions) + uses: firebelley/godot-export@v5.2.0 + with: + # Defining all the required inputs + godot_executable_download_url: https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip + godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-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.12.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true + tag: ${{ github.ref_name }} + artifacts: ${{ steps.export.outputs.archive_directory }}/* \ No newline at end of file