use sysenv for github actions #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build firmware | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# - name: Load environment variables | |
# run: | | |
# mv src/env-template.h src/env.h | |
- name: Installing platformio | |
run: pip3 install -U platformio | |
- name: Building a firmware | |
run: | | |
export SSID=${{ secrets.WIFI_SSID }} | |
export PASS=${{ secrets.WIFI_PASS }} | |
export JOINCODE=${{ secrets.HUSARNET_JOINCODE }} | |
export HOSTNAME=${{ secrets.HUSARNET_HOSTNAME }} | |
pio lib install | |
pio run |