Skip to content

Commit

Permalink
use build-tools pkg-prefix option correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 10, 2022
1 parent 55cdc39 commit 9b62f43
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ jobs:
tr '_' '-'
)
- name: Translate Repo Name For Build Tools package_prefix
id: pkg-name
run: |
echo ::set-output name=pkg-name::$(
echo ${{ github.repository }} |
awk -F '\/' '{ print tolower($2) }'
)
- uses: actions/checkout@v3

- name: Set up Python 3.x
Expand All @@ -104,7 +112,7 @@ jobs:
run: pip install circuitpython-build-tools

- name: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix "" --library_location .
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }} --library_location .

- name: Archive bundles
uses: actions/upload-artifact@v3
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
tr '_' '-'
)
- name: Translate Repo Name For Build Tools package_prefix
id: pkg-name
run: |
echo ::set-output name=pkg-name::$(
echo ${{ github.repository }} |
awk -F '\/' '{ print tolower($2) }'
)
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
Expand All @@ -45,7 +53,7 @@ jobs:
source actions-ci/install.sh
- name: Build assets
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix "" --library_location .
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }} --library_location .

- name: Upload Release Assets
# the 'official' actions version does not yet support dynamically
Expand Down

0 comments on commit 9b62f43

Please sign in to comment.