From 7eedbf9789538dcdbd0adb221b1ea2457d172e90 Mon Sep 17 00:00:00 2001 From: Charles Moore <122481442+moorec-aws@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:27:00 -0500 Subject: [PATCH] ci: package and publish the Maya plugin to the GitHub release (#174) Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com> Co-authored-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com> --- .../actions/bump_precommit_hook/action.yaml | 14 ++++++++++++++ .../actions/prepush_release_hook/action.yaml | 18 ++++++++++++++++++ .gitignore | 1 + 3 files changed, 33 insertions(+) create mode 100644 .github/actions/bump_precommit_hook/action.yaml create mode 100644 .github/actions/prepush_release_hook/action.yaml diff --git a/.github/actions/bump_precommit_hook/action.yaml b/.github/actions/bump_precommit_hook/action.yaml new file mode 100644 index 0000000..4cf4a50 --- /dev/null +++ b/.github/actions/bump_precommit_hook/action.yaml @@ -0,0 +1,14 @@ + +inputs: + semver: + required: true + type: string + +runs: + using: composite + steps: + - name: Update plugin Version + run: | + echo "+ deadline-cloud-for-maya ${{inputs.semver}} ." > ./maya_submitter_plugin/DeadlineCloudForMaya.mod + sed -i "s/^VERSION =.*/VERSION = \"${{inputs.semver}}\"/" ./maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py + git add ./maya_submitter_plugin/DeadlineCloudForMaya.mod ./maya_submitter_plugin/plug-ins/DeadlineCloudForMaya.py diff --git a/.github/actions/prepush_release_hook/action.yaml b/.github/actions/prepush_release_hook/action.yaml new file mode 100644 index 0000000..0d13cdd --- /dev/null +++ b/.github/actions/prepush_release_hook/action.yaml @@ -0,0 +1,18 @@ + +inputs: + semver: + required: true + type: string + tag: + required: true + type: string + +runs: + using: composite + steps: + - name: Zip submitter plugin + run: | + mkdir dist_extras + cd maya_submitter_plugin + zip -r ../dist_extras/maya_submitter_plugin_${{inputs.semver}}.zip . + cd .. diff --git a/.gitignore b/.gitignore index adfb96c..6ed5fd8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /dist +/dist_extras *.egg-info/ __pycache__/ .coverage