-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: Add workflow to attach release assets
When a release is created this new workflow calls the other build and test workflows and uploads the tested artifacts into github release. The existing workflows were modified to make them callable from other workflows. Build workflow now uploads the artifacts so that they can be added to the release. The build workflow uploads the hex, bin and the .config file. The names of the files will have the sha if built from main and the tag name if built from a tag. Signed-off-by: Balaji Srinivasan <[email protected]>
- Loading branch information
Balaji Srinivasan
committed
Jun 10, 2024
1 parent
1c5e06c
commit 402d76a
Showing
4 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Workflow that attaches additional assets to github release. | ||
name: Attach Release Assets | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
trigger-build: | ||
uses: ./.github/workflows/build.yml | ||
|
||
trigger-dfu-check: | ||
uses: ./.github/workflows/dfu_check.yml | ||
|
||
trigger-target-test: | ||
uses: ./.github/workflows/on_target.yml | ||
|
||
attach-assets: | ||
runs-on: ubuntu-22.04 | ||
# Only make a release if the above jobs are passing | ||
needs: [trigger-build, trigger-dfu-check, trigger-target-test] | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: firmware | ||
|
||
- name: Deploy release to github | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
fail_on_unmatched_files: true | ||
files: hello.nrfcloud.com-*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: DFU image compatibility check | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters