Skip to content

Commit

Permalink
ci: package and publish Keyshot plugin to the GitHub release
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <[email protected]>
  • Loading branch information
moorec-aws committed Sep 19, 2024
1 parent b1d82ef commit fadcc08
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/actions/bump_precommit_hook/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
inputs:
semver:
required: true
type: string

runs:
using: composite
steps:
- name: Update plugin Version
shell: bash
run: |
sed -i "s/^# VERSION.*/# VERSION ${{inputs.semver}}/" ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py
major=$(printf ${{inputs.semver}} | cut -d '.' -f1)
minor=$(printf ${{inputs.semver}} | cut -d '.' -f2)
sed -i "s/keyshot-openjd=[0-9]*.[0-9]*.\\*/keyshot-openjd=$major.$minor.\\*/" ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py
git add ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py
18 changes: 18 additions & 0 deletions .github/actions/prepush_release_hook/action.yml
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
shell: bash
run: |
mkdir dist_extras
cd src/deadline/keyshot_submitter
zip -r ../../../dist_extras/keyshot_submitter_plugin_${{inputs.semver}}.zip .
cd ../../../

0 comments on commit fadcc08

Please sign in to comment.