From 73c10e018ac58a20c658d8866079c7d0d62ad161 Mon Sep 17 00:00:00 2001 From: Felix <65357346+felix-schindler@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:30:17 +0100 Subject: [PATCH 1/9] Update and rename ReadMe.md to README.md - Update action namespace in example - Remove `subdirectory` option --- ReadMe.md => README.md | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) rename ReadMe.md => README.md (86%) diff --git a/ReadMe.md b/README.md similarity index 86% rename from ReadMe.md rename to README.md index d6f6f6f..d91f808 100644 --- a/ReadMe.md +++ b/README.md @@ -1,13 +1,13 @@ -![Release Version](https://img.shields.io/github/v/release/josephbmanley/build-godot-action) ![Test Action](https://github.com/josephbmanley/build-godot-action/workflows/Test%20Action/badge.svg) +![Release Version](https://img.shields.io/github/v/release/felix-schindler/build-godot-action) ![Build Godot Project](logo.png) This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds. Table of Contents: -- [Quickstart](#Quickstart) -- [Usage](#Usage) -- [Contributors](Contributors.md) + +- [Quickstart](#quickstart) +- [Usage](#usage) ## Quickstart @@ -42,7 +42,7 @@ jobs: lfs: true - name: Build id: build - uses: manleydev/build-godot-action@v1.4.1 + uses: felix-schindler/build-godot-action@v2.0.0 with: name: example preset: ${{ matrix.platform }} @@ -60,6 +60,7 @@ This workflow has three steps: - **Checkout**: The Checkout step clones the project on the GitHub actions runner. - **Build**: This step uses this action to build the Godot project. - **Upload Artifact**: The Upload Artifact step uploads the output from the build step. + > You could also use something like [softprops/action-gh-release](https://github.com/softprops/action-gh-release) to create automated releases of your game, instead of just uploading it as a artifact. **Matrix Explaination**: The matrix object runs the job for EACH possible value. So in this job, we are using a `platform` matrix to automatically run our workflow for the values `linux`, `windows`, and `mac`. @@ -82,7 +83,7 @@ Additionally if you are not using a matrix, you can set the export preset as the ```yaml - name: Build id: build - uses: manleydev/build-godot-action@v1.4.1 + uses: felix-schindler/build-godot-action@v2.0.0 with: name: example preset: win32 @@ -95,7 +96,7 @@ To change the export name, you can the `name` parameter to whatever you want you ```yaml - name: Build id: build - uses: manleydev/build-godot-action@v1.4.1 + uses: felix-schindler/build-godot-action@v2.0.0 with: name: test # This project will export with the name "test" ``` @@ -107,7 +108,7 @@ This example is set to build with debug mode enable. To disable debug, either se ```yaml - name: Build id: build - uses: manleydev/build-godot-action@v1.4.1 + uses: felix-schindler/build-godot-action@v2.0.0 with: name: example preset: ${{ matrix.platform }} @@ -121,7 +122,7 @@ If your project is located in a subdirectory, you can use the `projectDir` to ch ```yaml - name: Build id: build - uses: manleydev/build-godot-action@v1.4.1 + uses: felix-schindler/build-godot-action@v2.0.0 with: name: example preset: ${{ matrix.platform }} @@ -142,7 +143,7 @@ Example: ```yaml steps: -- uses: manleydev/build-godot-action@[VERSION] +- uses: felix-schindler/build-godot-action@[VERSION] with: name: godot-project preset: HTML5 @@ -158,12 +159,6 @@ steps: The name of the preset found in `export_presets.cfg` you would like to build. -#### subdirectory - - *Optional* - - The subdirectory in the `build` folder to output build to, can be useful for self packaging. - #### package *Optional* From 10d245ed1ba322d86396b012389af710627fd007 Mon Sep 17 00:00:00 2001 From: Felix <65357346+felix-schindler@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:33:13 +0100 Subject: [PATCH 2/9] Update action.yml name and option description --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 51d3ed0..043b96e 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: "Build Godot" +name: "Build Godot Games" description: "Build a Godot project for multiple platforms" author: josephbmanley inputs: @@ -9,7 +9,7 @@ inputs: description: 'Name of the preset in `export_presets.cfg` to use' required: true subdirectory: - description: 'Optional name of the subdirectory to put exported project in' + description: 'This has been removed, please do not use.' default: "" package: description: 'Set true to output an artifact zip file' From d05dee8a9794f4d3bcbfc941ec7c20b96e3a366f Mon Sep 17 00:00:00 2001 From: jaiden Date: Sun, 29 Dec 2024 19:14:44 +0000 Subject: [PATCH 3/9] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 04e6f3f..6c5a397 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ set -e # Move godot templates already installed from the docker image to home mkdir -v -p ~/.local/share/godot/export_templates -cp -a /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/ +cp -a -f /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/ if [ "$3" != "" ] From 1bf58c1f827fdd29dcf82d9dcdfd0ae9877c1446 Mon Sep 17 00:00:00 2001 From: jaiden Date: Sun, 29 Dec 2024 19:20:59 +0000 Subject: [PATCH 4/9] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6c5a397..72520a7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ set -e # Move godot templates already installed from the docker image to home mkdir -v -p ~/.local/share/godot/export_templates -cp -a -f /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/ +# cp -a -f /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/ if [ "$3" != "" ] From 9fd5447f7c129f12b815b16bc183af0f0563b177 Mon Sep 17 00:00:00 2001 From: marie Date: Sun, 29 Dec 2024 19:43:59 +0000 Subject: [PATCH 5/9] Update entrypoint.sh --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 72520a7..3c3b9cf 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,7 @@ set -e # Move godot templates already installed from the docker image to home mkdir -v -p ~/.local/share/godot/export_templates +mkdir ./Builds # cp -a -f /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/ From 857309d216c41d882db1e3fa20144be5c08a8970 Mon Sep 17 00:00:00 2001 From: marie Date: Sun, 29 Dec 2024 20:09:55 +0000 Subject: [PATCH 6/9] Debug Text To build action --- entrypoint.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3c3b9cf..e42bca6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,21 +26,4 @@ cd "$GITHUB_WORKSPACE/$5" godot ./project.godot --headless --${mode} "$2" echo "Build Done" -if [ "$5" != "" ] -then - BUILD_PATH="$GITHUB_WORKSPACE/$5/build/" -else - BUILD_PATH="$GITHUB_WORKSPACE/build/" -fi -echo build=$BUILD_PATH >> $GITHUB_OUTPUT - - -if [ "$4" = "true" ] -then - echo "Packing Build" - mkdir -p $GITHUB_WORKSPACE/package - cd $BUILD_PATH - zip $GITHUB_WORKSPACE/package/artifact.zip . -r - echo artifact=package/artifact.zip >> $GITHUB_OUTPUT - echo "Done" -fi +ls -la ./Builds From 866afed15351d4b0da4c3ed643853805cb977e1f Mon Sep 17 00:00:00 2001 From: marie Date: Sun, 29 Dec 2024 20:34:00 +0000 Subject: [PATCH 7/9] revert 857309d216c41d882db1e3fa20144be5c08a8970 revert Debug Text To build action --- entrypoint.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e42bca6..3c3b9cf 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,4 +26,21 @@ cd "$GITHUB_WORKSPACE/$5" godot ./project.godot --headless --${mode} "$2" echo "Build Done" -ls -la ./Builds +if [ "$5" != "" ] +then + BUILD_PATH="$GITHUB_WORKSPACE/$5/build/" +else + BUILD_PATH="$GITHUB_WORKSPACE/build/" +fi +echo build=$BUILD_PATH >> $GITHUB_OUTPUT + + +if [ "$4" = "true" ] +then + echo "Packing Build" + mkdir -p $GITHUB_WORKSPACE/package + cd $BUILD_PATH + zip $GITHUB_WORKSPACE/package/artifact.zip . -r + echo artifact=package/artifact.zip >> $GITHUB_OUTPUT + echo "Done" +fi From 1df3a3c3221140919929e210af292163b0650429 Mon Sep 17 00:00:00 2001 From: marie Date: Sun, 29 Dec 2024 20:38:31 +0000 Subject: [PATCH 8/9] Update entrypoint.sh --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 3c3b9cf..d5b9949 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,8 @@ cd "$GITHUB_WORKSPACE/$5" godot ./project.godot --headless --${mode} "$2" echo "Build Done" +ls -la ./Builds + if [ "$5" != "" ] then BUILD_PATH="$GITHUB_WORKSPACE/$5/build/" From 0b1021f0315e9bece1c18645f1bfbe9c0006d696 Mon Sep 17 00:00:00 2001 From: marie Date: Sun, 29 Dec 2024 20:51:40 +0000 Subject: [PATCH 9/9] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d5b9949..62ee593 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -41,7 +41,7 @@ if [ "$4" = "true" ] then echo "Packing Build" mkdir -p $GITHUB_WORKSPACE/package - cd $BUILD_PATH + cd ./Builds zip $GITHUB_WORKSPACE/package/artifact.zip . -r echo artifact=package/artifact.zip >> $GITHUB_OUTPUT echo "Done"