Skip to content

Commit 5b69cf2

Browse files
committed
archive built bundles in release CI manual trigger
1 parent 5267423 commit 5b69cf2

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
5-
name: Release Actions
1+
name: Release
62

73
on:
84
release:
@@ -11,7 +7,6 @@ on:
117

128
jobs:
139
upload-release-assets:
14-
if: github.event_name != 'workflow_dispatch' && github.repository == 'nRF24/CircuitPython_nRF24L01'
1510
runs-on: ubuntu-latest
1611
steps:
1712
- name: Translate Repo Name For Build Tools filename_prefix
@@ -54,7 +49,15 @@ jobs:
5449
- name: Build assets
5550
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }} --library_location .
5651

52+
- name: Archive bundles
53+
if: github.event_name == 'workflow_dispatch' && github.repository == 'nRF24/CircuitPython_nRF24L01'
54+
uses: actions/upload-artifact@v3
55+
with:
56+
name: bundles
57+
path: ${{ github.workspace }}/bundles/
58+
5759
- name: Upload Release Assets
60+
if: github.event_name != 'workflow_dispatch' && github.repository == 'nRF24/CircuitPython_nRF24L01'
5861
# the 'official' actions version does not yet support dynamically
5962
# supplying asset names to upload. @csexton's version chosen based on
6063
# discussion in the issue below, as its the simplest to implement and

0 commit comments

Comments
 (0)