Skip to content

Release to GitHub

Release to GitHub #53

Workflow file for this run

name: Release to GitHub
on:
workflow_dispatch:
inputs:
run_id:
description: 'The workflow id where the artifacts were uploaded'
required: true
type: string
tag:
description: 'Tag to be used (e.g. v8.8.8)'
required: true
type: string
env:
GH_TOKEN: ${{ github.token }}
jobs:
release:
runs-on: ['ubuntu-latest']
steps:
- name: Download artifacts
run: |
gh run download ${{ inputs.run_id }} --repo nordicsemiconductor/pc-nrfconnect-launcher
- name: Merge latest-mac.yml
run: |
ls -R
mv nrfconnect-macOS-x64/latest-mac-x64.yml nrfconnect-macOS-arm64/
cd nrfconnect-macOS-arm64
yq '. *=+ load("latest-mac-x64.yml")' latest-mac-arm64.yml > latest-mac.yml
rm latest-mac-x64.yml latest-mac-arm64.yml
- name: Create Release
run: >
gh release create ${{ inputs.tag }}
--repo nordicsemiconductor/pc-nrfconnect-launcher
--title ${{ inputs.tag }}
--draft -F nrfconnect-linux-x64/Changelog.md
nrfconnect-*/*.AppImage
nrfconnect-*/*.exe
nrfconnect-*/*.dmg
nrfconnect-*/*.zip
nrfconnect-*/latest*.yml