diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e2133d..86cefd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,24 +28,24 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - run: sudo apt update && sudo apt install -y p7zip-full p7zip-rar - name: Install 7zip - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: Checkout files - - - name: export game - id: export - # Use latest version (see releases for all versions) - uses: https://github.com/firebelley/godot-export@v6.0.0 + name: Checkout Files + + - uses: chickensoft-games/setup-godot@v1 + name: Setup Godot with: - godot_executable_download_url: https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION }}-${{ env.GODOT_BUILD }}/Godot_v${{ env.GODOT_VERSION }}-${{ env.GODOT_BUILD }}_linux.arm64.zip - godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION }}-${{ env.GODOT_BUILD }}/Godot_v${{ env.GODOT_VERSION }}-${{ env.GODOT_BUILD }}_export_templates.tpz - relative_project_path: ./ - - - name: Upload build + version: 4.3-stable + + - name: Build Gaame + run: | + mkdir -v -p build/web + EXPORT_DIR="$(readlink -f build)" + cd $PROJECT_PATH + godot --headless --verbose --export-release "Web" "$EXPORT_DIR/web/index.html" + + - name: Upload Build uses: actions/upload-artifact@v4 - with: - name: Game files - path: ${{ steps.export.outputs.build_directory }} + with: + name: Web Build + path: build/web