Skip to content

Commit

Permalink
Create godot-template-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 authored Oct 19, 2024
1 parent 767449f commit a81ed35
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/godot-template-build.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a81ed35

Please sign in to comment.