Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 2 additions & 54 deletions .github/workflows/build-observer-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@ permissions:

on:
workflow_dispatch:
push:
tags:
# Trigger only — the embedded version comes from FIRMWARE_VERSION below,
# NOT from the tag. Push e.g. `observer-mqtt-v1.17.0` to kick a rolling
# build from this branch (the Run-workflow button lives on the default
# branch; a tag push works regardless of which branch the file is on).
- 'observer-mqtt-*'

env:
# Version embedded in firmware filenames; must match the version key in the
# flasher's config.json. Bump here when the observer version changes.
# Version embedded in firmware filenames. Bump here when the observer version changes.
FIRMWARE_VERSION: v1.18.0
# Rolling release tag that hosts the latest observer binaries.
RELEASE_TAG: observer-mqtt-latest
Expand Down Expand Up @@ -90,8 +82,7 @@ jobs:
path: out
if-no-files-found: error

# Collect all shard outputs, publish the rolling release, then point the
# flasher at the new build by bumping the hash + notes in its config.json.
# Collect all shard outputs and publish the rolling release in this repository.
release:
needs: build
runs-on: ubuntu-latest
Expand All @@ -110,10 +101,6 @@ jobs:
find artifacts -type f -name '*.bin' -exec cp -f {} out/ \;
echo "Collected binaries:"; ls -1 out

- name: Compute Short SHA
id: sha
run: echo "short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

- name: Publish to Rolling Release (tag pinned; assets replaced in place)
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -136,42 +123,3 @@ jobs:
| while read -r asset; do
grep -qxF "$asset" <<<"$keep" || gh release delete-asset "$RELEASE_TAG" "$asset" --yes || true
done

- name: Checkout Flasher Repo
uses: actions/checkout@v4
with:
repository: agessaman/flasher.meshcore.io
token: ${{ secrets.FLASHER_DISPATCH_TOKEN }}
path: flasher

- name: Update Flasher Config
run: |
python3 flasher/scripts/update-firmware.py \
"${{ steps.sha.outputs.short }}" \
"$GITHUB_WORKSPACE/firmware-notes.html"

- name: Sync Docs into Flasher
run: |
# docs.html on the flasher site serves these raw .md files and renders
# them client-side; keep this list in sync with LOCAL_DOCS in
# flasher/docs.html.
for f in MQTT_IMPLEMENTATION.md MQTT_SNMP.md ALERTS.md; do
if [ -f "$f" ]; then
cp -f "$f" "flasher/$f"
echo "synced $f"
else
echo "WARNING: source doc $f not found" >&2
fi
done

- name: Commit & Push Flasher Config
working-directory: flasher
run: |
if git diff --quiet; then
echo "No flasher changes to commit."
exit 0
fi
git config user.name "meshcore-bot"
git config user.email "noreply@gessaman.com"
git commit -am "Update observer firmware to ${{ steps.sha.outputs.short }}"
git push
94 changes: 0 additions & 94 deletions .github/workflows/check-mqtt-preset-parity.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/github-pages.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/stale-bot.yml

This file was deleted.

Loading