Skip to content

fix: terminate connection on halt #80

fix: terminate connection on halt

fix: terminate connection on halt #80

Workflow file for this run

name: CI
on:
- push
- workflow_dispatch
jobs:
firmware:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build firmware
run: |
make build
make asm
cp build/*.asm firmware/
env:
WIFI_SSID: ${{ secrets.WIFI_SSID }}
WIFI_PASSWORD: ${{ secrets.WIFI_PASSWORD }}
- name: Upload firmware
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware/
release:
runs-on: ubuntu-latest
needs: [firmware]
if: github.ref == 'refs/heads/v1'
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download firmware
uses: actions/download-artifact@v3
with:
name: firmware
path: firmware/
- name: Prepare for release
run: |
tar czf firmware.tgz firmware/
ls -al
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: |
vsha=${{ github.sha }}
version=$(echo $vsha | cut -b -5)
date=$(date -Idate)
echo $version
gh release create "v1-$version" --latest --title "Release $version" --notes "New firmware version from $date. See flash instructions [on README.md](https://github.com/homebots/vm)" firmware.tgz
flash:
runs-on: ubuntu-latest
needs: [release]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download firmware
uses: actions/download-artifact@v3
with:
name: firmware
path: firmware/
- name: Upload to ESP flash
run: |
set -e
export ESP_LIVE_URL="${{ secrets.ESP_LIVE_URL }}"
sh test-remote.sh