Fix indention

This commit is contained in:
Ben Meadors 2022-11-19 17:43:18 -06:00
parent 0533fd9227
commit 1dcd411d00

View File

@ -10,68 +10,68 @@ on:
jobs: jobs:
build-esp32: build-esp32:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
submodules: "recursive" submodules: "recursive"
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.x python-version: 3.x
- name: Cache python libs - name: Cache python libs
uses: actions/cache@v3 uses: actions/cache@v3
id: cache-pip # needed in if test id: cache-pip # needed in if test
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip key: ${{ runner.os }}-pip
- name: Upgrade python tools - name: Upgrade python tools
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -U platformio adafruit-nrfutil pip install -U platformio adafruit-nrfutil
- name: Upgrade platformio - name: Upgrade platformio
run: | run: |
pio upgrade pio upgrade
- name: Pull web ui - name: Pull web ui
uses: dsaltares/fetch-gh-release-asset@master uses: dsaltares/fetch-gh-release-asset@master
with: with:
repo: "meshtastic/web" repo: "meshtastic/web"
file: "build.tar" file: "build.tar"
target: "build.tar" target: "build.tar"
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack web ui - name: Unpack web ui
run: | run: |
tar -xf build.tar -C data/static tar -xf build.tar -C data/static
rm build.tar rm build.tar
- name: Build ESP32 - name: Build ESP32
run: bin/build-esp32.sh ${{ inputs.board }} run: bin/build-esp32.sh ${{ inputs.board }}
- name: Pull OTA Firmware - name: Pull OTA Firmware
uses: dsaltares/fetch-gh-release-asset@master uses: dsaltares/fetch-gh-release-asset@master
with: with:
repo: "meshtastic/firmware-ota" repo: "meshtastic/firmware-ota"
file: "firmware.bin" file: "firmware.bin"
target: "release/bleota.bin" target: "release/bleota.bin"
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Get release version string - name: Get release version string
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version id: version
- name: Store binaries as an artifact - name: Store binaries as an artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip
path: | path: |
release/*.bin release/*.bin
release/*.elf release/*.elf
retention-days: 30 retention-days: 30