-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (50 loc) · 1.58 KB
/
attach_release_assets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Workflow that attaches additional assets to github release.
name: Attach Release Assets
permissions:
contents: write
actions: write
on:
release:
types: [created]
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
build_bl_update: true
build_debug: true
memfault_sw_type: "hello.nrfcloud.com"
attach-assets:
runs-on: ubuntu-24.04
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
pattern: firmware-*
merge-multiple: true
- name: Deploy release to github
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: |
hello.nrfcloud.com-*.*
connectivity-bridge*.*
nrf91-bl-*.hex
nrf53-bl-*.hex
- name: Trigger workflow that publishes firmware bundles to nRF Cloud
working-directory: .github/workflows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run publish-firmware-bundles.yml \
-F version=${{ github.event.release.tag_name }}
- name: Trigger workflow that publishes symbol files to Memfault
working-directory: .github/workflows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run publish-symbol-files-to-memfault.yml \
-F version=${{ github.event.release.tag_name }}