Skip to content

Commit

Permalink
Merge pull request #39 from limbonaut/gha-package-demo
Browse files Browse the repository at this point in the history
GHA: Package demo project
  • Loading branch information
limbonaut authored Feb 15, 2024
2 parents b024545 + 3c9fc33 commit ac2052b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/init-version-gdext/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ runs:
- name: Set NAME_PREFIX
shell: bash
run: echo "NAME_PREFIX=gdextension-${GDEXTENSION_VERSION}.limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV"

run: echo "NAME_PREFIX=limboai+${LIMBOAI_VERSION}.gdextension-${GDEXTENSION_VERSION}" >> "$GITHUB_ENV"
7 changes: 7 additions & 0 deletions .github/workflows/all_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,10 @@ jobs:
godot-cpp-treeish: ${{ inputs.godot-cpp-treeish }}
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
test-build: false

demo:
name: 🎮️ Demo project
needs: cache-sha
uses: ./.github/workflows/demo.yml
with:
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
41 changes: 41 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
name: Package demo

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/*

0 comments on commit ac2052b

Please sign in to comment.