File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 9
9
description : ' The version of Python to use in the CI'
10
10
required : true
11
11
default : ' 3.x'
12
+ package-prefix :
13
+ description : |
14
+ The prefix (or name) of your pacakge (if applicable) to use
15
+ for GitHub releases
16
+ required : true
17
+ default : " "
12
18
runs :
13
19
using : " composite"
14
20
steps :
71
77
pip install .
72
78
pytest
73
79
fi
80
+ - name : Add the given package filename_prefix
81
+ id : package-prefix-arg
82
+ shell : bash
83
+ run : |
84
+ if [ "${{ inputs.package-prefix }}" == "" ]; then
85
+ echo prefix-arg="" >> $GITHUB_OUTPUT
86
+ else
87
+ echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
88
+ fi
74
89
- name : Build assets
75
90
shell : bash
76
- run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
91
+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
77
92
- name : Archive bundles
78
93
uses : actions/upload-artifact@v3
79
94
with :
You can’t perform that action at this time.
0 commit comments