Skip to content

Commit

Permalink
ci: package and publish the Maya plugin to the GitHub release (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <[email protected]>
Co-authored-by: Daniel Neilson <[email protected]>
  • Loading branch information
moorec-aws and ddneilson authored Sep 19, 2024
1 parent 06bf502 commit 7eedbf9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/bump_precommit_hook/action.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/actions/prepush_release_hook/action.yaml
Original file line number Diff line number Diff line change
@@ -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 ..
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/dist
/dist_extras
*.egg-info/
__pycache__/
.coverage
Expand Down

0 comments on commit 7eedbf9

Please sign in to comment.