-
Notifications
You must be signed in to change notification settings - Fork 73
38 lines (34 loc) · 1.39 KB
/
release.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
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
jobs:
release:
runs-on: ['ubuntu-latest']
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
run_id: ${{ inputs.run_id }}
- name: Merge latest-mac.yml
run: |
ls -R
mv nrfconnect-macOS-x64/latest-mac-x64.yml nrfconnect-macOS-arm64/
cd nrfconnect-macOS-arm64
yq eval-all '(select(fileIndex == 0).files as $x) | (select(fileIndex == 1).files) += $x' latest-mac-arm64.yml latest-mac-x64.yml | awk '/---/ {p = !p; next} p' > latest-mac.yml
rm latest-mac-x64.yml latest-mac-arm64.yml
- name: Create Release
uses: ncipollo/[email protected]
with:
allowUpdates: false
artifacts: 'nrfconnect-*/*.AppImage,nrfconnect-*/*.exe,nrfconnect-*/*.dmg,nrfconnect-*/*.zip,nrfconnect-*/latest*.yml'
tag: ${{ inputs.tag }}
draft: true