Update to handle SkeletonModifier3D / XRTracker changes (#1) #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to automatically create deliverables | |
name: Build on push | |
on: | |
[push, pull_request] | |
jobs: | |
build: | |
name: Assembling artifacts | |
runs-on: ubuntu-20.04 | |
# 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_axis_studio_tracker | |
# and build plugin/godot_axis_studio_tracker | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: demo/godot_axis_studio_tracker | |
- name: Create Godot Axis Studio Tracker plugin | |
run: | | |
mkdir plugin | |
mkdir plugin/godot_axis_studio_tracker | |
mkdir plugin/godot_axis_studio_tracker/addons | |
cp -r demo/godot_axis_studio_tracker/addons/godot_axis_studio_tracker plugin/godot_axis_studio_tracker/addons | |
cp demo/godot_axis_studio_tracker/LICENSE plugin/godot_axis_studio_tracker/addons/godot_axis_studio_tracker | |
cp demo/godot_axis_studio_tracker/CONTRIBUTORS.md plugin/godot_axis_studio_tracker/addons/godot_axis_studio_tracker | |
cp demo/godot_axis_studio_tracker/VERSIONS.md plugin/godot_axis_studio_tracker/addons/godot_axis_studio_tracker | |
rm -rf demo/godot_axis_studio_tracker/.git | |
rm -rf demo/godot_axis_studio_tracker/.github | |
- name: Create Godot Axis Studio Tracker library artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: godot_axis_studio_tracker | |
path: | | |
plugin | |
- name: Create Godot Axis Studio Tracker demo artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: godot_axis_studio_tracker_demo | |
path: | | |
demo | |
- name: Zip asset | |
run: | | |
cd plugin | |
zip -qq -r ../godot_axis_studio_tracker.zip godot_axis_studio_tracker | |
cd ../demo | |
zip -qq -r ../godot_axis_studio_tracker_demo.zip godot_axis_studio_tracker | |
cd .. | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
- name: Create and upload asset | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "godot_axis_studio_tracker.zip,godot_axis_studio_tracker_demo.zip" | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |