-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: package and publish Keyshot plugin to the GitHub release (#118)
Signed-off-by: Charles Moore <[email protected]>
- Loading branch information
1 parent
b1d82ef
commit c2760a0
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 ../../../ |