2024-02-15 13:24:45 +00:00
|
|
|
name: 🎮️ Demo project
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
2024-03-10 16:23:59 +00:00
|
|
|
limboai-ref:
|
2024-02-15 13:24:45 +00:00
|
|
|
description: A tag, branch or commit hash in the LimboAI repository.
|
|
|
|
type: string
|
|
|
|
default: master
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2024-03-10 16:23:59 +00:00
|
|
|
limboai-ref:
|
2024-02-15 13:24:45 +00:00
|
|
|
description: A tag, branch or commit hash in the LimboAI repository.
|
|
|
|
type: string
|
|
|
|
default: master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
package-demo:
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-15 13:34:05 +00:00
|
|
|
name: Package demo
|
2024-02-15 13:24:45 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone LimboAI module
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-tags: true
|
2024-03-10 16:23:59 +00:00
|
|
|
ref: ${{ inputs.limboai-ref }}
|
2024-02-15 13:24:45 +00:00
|
|
|
|
|
|
|
- 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/
|
2024-03-21 22:27:39 +00:00
|
|
|
mkdir -p demo/addons/limboai/
|
|
|
|
cp -R icons/ demo/addons/limboai/icons
|
2024-02-15 13:24:45 +00:00
|
|
|
|
|
|
|
- name: Upload artifact
|
2024-03-10 16:23:59 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-02-15 13:24:45 +00:00
|
|
|
env:
|
|
|
|
NAME: limboai+${{env.LIMBOAI_VERSION}}.demo-project
|
|
|
|
with:
|
|
|
|
name: ${{ env.NAME }}
|
|
|
|
path: demo/*
|