Skip to content

Commit

Permalink
put in a build on push action thingie
Browse files Browse the repository at this point in the history
  • Loading branch information
goatchurchprime committed Jul 16, 2024
1 parent 7d3fde4 commit fe94e1b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Workflow to automatically create deliverables
name: Build on push

on:
[push]

jobs:
build:
name: Assembling artifacts
runs-on: ubuntu-latest

# Note, to satisfy the asset library we need to make sure our zip files have a root folder
# this is why we checkout into demo/godot_hand_pose_detector
# and build plugin/godot_hand_pose_detector
steps:

- name: Checkout
uses: actions/checkout@v4
with:
path: demo/godot-mqtt


- name: Create Godot Hand Pose Detector
run: |
mkdir plugin
mkdir plugin/godot-mqtt
mkdir plugin/godot-mqtt/addons
cp -r demo/godot-mqtt/addons/mqtt plugin/godot-mqtt/addons
cp demo/godot-mqtt/LICENSE plugin/godot-mqtt/addons/mqtt
rm -rf demo/godot-mqtt/.git
rm -rf demo/godot-mqtt/.github
- name: Create Godot MQTT artifact
uses: actions/upload-artifact@v4
with:
name: godot-mqtt
path: plugin


- name: Create Godot Hand Pose Detector demo artifact
uses: actions/upload-artifact@v4
with:
name: godot-mqtt_demo
path: demo

- name: Zip asset
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
cd plugin
zip -qq -r ../godot-mqtt.zip godot-mqtt
cd ../demo
zip -qq -r ../godot-mqtt.zip godot-mqtt
cd ..

0 comments on commit fe94e1b

Please sign in to comment.