This commit is contained in:
cyberman54 2023-01-21 14:26:59 +01:00
parent e359dd8306
commit 1aa54ca8ab

View File

@ -51,16 +51,8 @@ jobs:
cp src/loraconf_sample.h src/loraconf.h
cp src/ota_sample.conf src/ota.conf
cp src/paxcounter_orig.conf src/paxcounter.conf
sed -i "s/APPEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/$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};/$APPKEY/g" "src/loraconf.h"
env:
APPEUI: ${{secrets.APPEUI}}
APPKEY: ${{secrets.APPKEY}}
- name: test key
run: 'echo "$APPEUI"'
shell: bash
env:
SSH_KEY: ${{secrets.APPEUI}}
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"
- name: Build and deploy for testboard
env:
PLATFORMIO_AUTH_TOKEN: ${{secrets.PLATFORMIO_AUTH_TOKEN}}