Skip to content

Commit

Permalink
WIP: testing action for pycompon
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Jan 16, 2024
1 parent e3bbc28 commit 7985fb7
Show file tree
Hide file tree
Showing 85 changed files with 842 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/ghpython-components/README.md
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.
32 changes: 32 additions & 0 deletions .github/actions/ghpython-components/action.yml
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'
Loading

0 comments on commit 7985fb7

Please sign in to comment.