Skip to content

Attach Release Assets #6

Attach Release Assets

Attach Release Assets #6

# Workflow that attaches additional assets to github release.
name: Attach Release Assets
permissions:
contents: write
actions: write
on:
release:
types: [created]
jobs:
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
needs: [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@v2
with:
fail_on_unmatched_files: true
files: hello.nrfcloud.com-*.*
- name: Trigger publish firmware workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run publish-firmware-bundles.yml \
-F version=${{ env.VERSION }}