Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building bundles for build CI #24

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ inputs:
description: 'The version of Python to use in the CI'
required: true
default: '3.x'
package-prefix:
description: |
The prefix (or name) of your pacakge (if applicable) to use
for GitHub releases
required: true
jepler marked this conversation as resolved.
Show resolved Hide resolved
default: ""
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -71,9 +77,18 @@ runs:
pip install .
pytest
fi
- name: Add the given package filename_prefix
id: package-prefix-arg
shell: bash
run: |
if [ "${{ inputs.package-prefix }}" == "" ]; then
echo prefix-arg="" >> $GITHUB_OUTPUT
else
echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
fi
- name: Build assets
shell: bash
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
- name: Archive bundles
uses: actions/upload-artifact@v3
with:
Expand Down