-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (42 loc) · 1.14 KB
/
region_params.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
name: Region Params
on:
push:
paths:
- "regions.txt"
- "region_params/**"
- ".github/workflows/region_params.yml"
pull_request:
branches:
- main
paths:
- "regions.txt"
- "region_params/**"
- ".github/workflows/region_params.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Tools
uses: jaxxstorm/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo: helium/lorawan-h3
tag: lw-generator-v0.4.0
- name: Build | Generate
run: |
for region in `cat regions.txt`; do
lw-generator params generate region_params/${region}.json ${region}.rpz
done
- name: Release | Artifacts
if: startsWith(github.ref, 'refs/tags/region_params')
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
name: ${{github.ref_name}}
files: |
*.rpz