From a81ed35a336ec5adbb0e378f775f286747276bd3 Mon Sep 17 00:00:00 2001 From: myin Date: Sat, 19 Oct 2024 09:18:12 +0200 Subject: [PATCH] Create godot-template-build.yml --- .github/workflows/godot-template-build.yml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/godot-template-build.yml diff --git a/.github/workflows/godot-template-build.yml b/.github/workflows/godot-template-build.yml new file mode 100644 index 0000000..9dfb05f --- /dev/null +++ b/.github/workflows/godot-template-build.yml @@ -0,0 +1,53 @@ +name: Build Godot Templates + +# ENCRPYTION_KEY secret needed + +on: + workflow_dispatch: + inputs: + version: + description: 'Godot Version' + required: true + type: string + default: '4.3' + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +jobs: + template-build: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux, windows, web] + steps: + - uses: kuma-gee/action-godot-template@v1 + with: + version: ${{ inputs.version }} + platform: ${{ matrix.platform }} + encryption-key: ${{ secrets.ENCRYPTION_KEY }} + + - uses: actions/upload-artifact@v4 + with: + name: template-${{ matrix.platform }} + path: custom_templates/ + if-no-files-found: error + + release-godot-template: + runs-on: ubuntu-latest + needs: template-build + steps: + - uses: actions/download-artifact@v4 + with: + pattern: template-* + path: bin + merge-multiple: true + + - name: Release + uses: softprops/action-gh-release@v2 + with: + prerelease: false + files: bin/* + name: Godot ${{ inputs.version }} Templates + tag_name: template-${{ inputs.version }}