testing
This commit is contained in:
parent
1aa54ca8ab
commit
ff539af4ec
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -45,15 +45,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
|
- name: Show keys
|
||||||
|
env:
|
||||||
|
MY_VAL: ${{ secrets.APPEUI }}
|
||||||
|
run: |
|
||||||
|
import os
|
||||||
|
data = open("file", "w")
|
||||||
|
for q in (os.getenv("MY_VAL")):
|
||||||
|
print q
|
||||||
|
data.write(q)
|
||||||
|
shell: python
|
||||||
- name: Copy of necessary files
|
- name: Copy of necessary files
|
||||||
run: |
|
run: |
|
||||||
cp platformio_orig.ini platformio.ini
|
cp platformio_orig.ini platformio.ini
|
||||||
cp src/loraconf_sample.h src/loraconf.h
|
cp src/loraconf_sample.h src/loraconf.h
|
||||||
cp src/ota_sample.conf src/ota.conf
|
cp src/ota_sample.conf src/ota.conf
|
||||||
cp src/paxcounter_orig.conf src/paxcounter.conf
|
cp src/paxcounter_orig.conf src/paxcounter.conf
|
||||||
sed -i "s/APPEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{secrets.APPEUI}}/g" "src/loraconf.h"
|
sed -i "s/APPEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{ secrets.APPEUI }}/g" "src/loraconf.h"
|
||||||
sed -i "s/APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{secrets.APPKEY}}/g" "src/loraconf.h"
|
sed -i "s/APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{ secrets.APPKEY }}/g" "src/loraconf.h"
|
||||||
- name: Build and deploy for testboard
|
- name: Build and deploy for testboard
|
||||||
env:
|
env:
|
||||||
PLATFORMIO_AUTH_TOKEN: ${{secrets.PLATFORMIO_AUTH_TOKEN}}
|
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
|
||||||
run: pio remote -a prenzlpi run -t upload -r
|
run: pio remote -a prenzlpi run -t upload -r
|
Loading…
Reference in New Issue
Block a user