-
Notifications
You must be signed in to change notification settings - Fork 224
58 lines (47 loc) · 1.36 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on:
push:
branches:
- main
tags:
- "[0-9]+"
pull_request:
branches:
- main
name: ci
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install xorf-generator
uses: jaxxstorm/[email protected]
env:
## Allow install into PATH
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo: helium/xorf-generator
- name: Get descriptor path
id: set_descriptor
run: |
echo "descriptor_path=$(jq .report_prefix manifest.json)" >> $GITHUB_ENV
- name: Get serial
id: set_serial
run: |
echo "serial=$(jq .serial manifest.json)" >> $GITHUB_ENV
- name: Download descriptor
run: wget ${{env.descriptor_path}}descriptor.bin.gz
- name: Generate signing data
run: xorf-generator data generate --serial ${{env.serial}}
- name: Check manifest
run: xorf-generator manifest verify
- name: Check filter
run: xorf-generator filter generate
- name: Push Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
filter.bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}