Publish firmware bundles to nRF Cloud #91
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
name: Publish firmware bundles to nRF Cloud | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
type: string | |
description: Release version to publish, e.g. "v1.1.0" | |
jobs: | |
publish: | |
environment: production | |
name: Publish firmware bundles to nRF Cloud | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- name: Install dependencies | |
run: npm i @octokit/rest yazl | |
- run: node .github/workflows/fetch-release-assets.mjs ${{ inputs.version }} | |
- run: npx tsx .github/workflows/register-firmware-bundles.mjs ${{ inputs.version }} | |
env: | |
NRF_CLOUD_API_KEY: ${{ secrets.NRF_CLOUD_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |