GHA: Package demo project
This commit is contained in:
parent
b0245457db
commit
17291081e5
|
@ -100,3 +100,10 @@ jobs:
|
||||||
godot-cpp-treeish: ${{ inputs.godot-cpp-treeish }}
|
godot-cpp-treeish: ${{ inputs.godot-cpp-treeish }}
|
||||||
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
||||||
test-build: false
|
test-build: false
|
||||||
|
|
||||||
|
demo:
|
||||||
|
name: 🎮️ Demo project
|
||||||
|
needs: cache-sha
|
||||||
|
uses: ./.github/workflows/demo.yml
|
||||||
|
with:
|
||||||
|
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
name: 🎮️ Demo project
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
limboai-treeish:
|
||||||
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
|
type: string
|
||||||
|
default: master
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
limboai-treeish:
|
||||||
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
|
type: string
|
||||||
|
default: master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
package-demo:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone LimboAI module
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-tags: true
|
||||||
|
ref: ${{ inputs.limboai-treeish }}
|
||||||
|
|
||||||
|
- name: Prepare artifact
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1.\2/g' )" >> "$GITHUB_ENV"
|
||||||
|
cp {README,LICENSE}.md demo/
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
env:
|
||||||
|
NAME: limboai+${{env.LIMBOAI_VERSION}}.demo-project
|
||||||
|
with:
|
||||||
|
name: ${{ env.NAME }}
|
||||||
|
path: demo/*
|
Loading…
Reference in New Issue