-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
842 additions
and
1 deletion.
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 @@ | ||
This action was implemented from the [compass componentizer](https://github.com/compas-dev/compas-actions.ghpython_components/tree/main). We retain no credit for the code, and only modified it to work with our own repository. |
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,32 @@ | ||
# This action was implemented from the [compass componentizer](https://github.com/compas-dev/compas-actions.ghpython_components/tree/main). We retain no credit for the code, and only modified it to work with our own repository. | ||
|
||
name: 'Grasshopper componentizer' | ||
description: 'Create GHUser components from Python source code' | ||
inputs: | ||
source: | ||
description: 'Source directory where code for all components is stored' | ||
required: true | ||
target: | ||
description: 'Target directory for ghuser files' | ||
required: true | ||
prefix: | ||
description: 'Add this prefix to the name of each generated component' | ||
required: false | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json | ||
shell: pwsh | ||
- run: | | ||
$command="ipy" | ||
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib" | ||
$prefix="${{ inputs.prefix }}" | ||
if( $prefix ) | ||
{ | ||
$params=$params + "--prefix", "$prefix" | ||
} | ||
& $command $params | ||
shell: pwsh | ||
branding: | ||
icon: 'box' | ||
color: 'orange' |
Oops, something went wrong.