forked from OpenEVSE/open_evse
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.12 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
39
40
41
name: Create pre-release
on:
workflow_call:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Install jq
run: |
sudo apt-get install jq -y
- name: Download the built assets
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Rename images to something more sensible
run: |
find artifacts -name '*.hex' | while read -r image; do
dir=$(dirname "${image}")
board=$(basename "${dir}")
echo mv "$image" "$board.hex"
mv "$image" "$board.hex"
done
jq -s . $(find -name info.json) > build_info.json
jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' build_info.json > build_info.csv
- name: Upload assets to latest release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
*.hex
build_info.json
build_info.csv