Skip to content

Commit

Permalink
Merge pull request #26 from tekktrik/dev/build-bundle-ignore
Browse files Browse the repository at this point in the history
Allow bundles to be skipped from being built
  • Loading branch information
kattni committed Jul 28, 2023
2 parents 4ee6c23 + 823e721 commit 6b89943
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion release-gh/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ inputs:
for GitHub releases
required: true
default: ""
ignore-bundles:
description: |
A comma and space separated list of bundles to be skipped when building.
Valid options are py, mpy, example, and json. For example, to skip
building the MPY and example bundles, this field would be: mpy, example
required: true
default: ""
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -63,9 +70,23 @@ runs:
else
echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
fi
- name: Add the given bundle ignores
id: ignore-bundles-arg
shell: bash
run: |
if [ "${{ inputs.ignore-bundles }}" == "" ]; then
echo ignore-bundles="" >> $GITHUB_OUTPUT
else
echo ignore-bundles='--ignore "${{ inputs.ignore-bundles }}"' >> $GITHUB_OUTPUT
fi
- name: Build assets
shell: bash
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
run: |
circuitpython-build-bundles \
--filename_prefix ${{ steps.repo-name.outputs.repo-name }} \
--library_location . \
${{ steps.package-prefix-arg.outputs.prefix-arg }} \
${{ steps.ignore-bundles-arg.outputs.prefix-arg }}
- name: Upload Release Assets
uses: shogo82148/actions-upload-release-asset@v1
with:
Expand Down

0 comments on commit 6b89943

Please sign in to comment.