-
Notifications
You must be signed in to change notification settings - Fork 224
53 lines (43 loc) · 1.23 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
on:
push:
branches:
- main
tags:
- "[0-9]+"
pull_request:
branches:
- main
name: ci
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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 "::set-output name=descriptor_path::$(jq .report_prefix manifest.json)"
- name: Download descriptor
run: wget ${{steps.set_descriptor.outputs.descriptor_path}}descriptor.json
- name: Generate signing data
run: xorf-generator data generate
- 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 }}