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
5 changes: 1 addition & 4 deletions .github/workflows/build-dmc-companion-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ permissions:

on:
workflow_dispatch:
push:
tags:
- 'dmc-companion-*'

jobs:
build:
# Build every companion board (usb + ble variants) via the shared matrix
# builder. Draft release on tag push.
# builder. Run by hand only.
uses: ./.github/workflows/firmware-builder.yml
with:
firmware_type: 'companion'
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/build-dmc-repeater-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ permissions:

on:
workflow_dispatch:
push:
tags:
- 'dmc-repeater-*'
# Exclude the observer MQTT repeater tags (they have their own workflow).
# 'dmc-repeater-*' otherwise also matches 'dmc-repeater-mqtt-*'.
- '!dmc-repeater-mqtt-*'

jobs:
build:
# Build every repeater board via the shared matrix builder (was a temporary
# curated subset; DMC now ships the full set). Draft release on tag push.
# curated subset; DMC now ships the full set). Run by hand only.
uses: ./.github/workflows/firmware-builder.yml
with:
firmware_type: 'repeater'
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/build-dmc-room-server-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@ permissions:

on:
workflow_dispatch:
push:
tags:
- 'dmc-room-server-*'
# Exclude the observer MQTT room-server tags (they have their own
# workflow). 'dmc-room-server-*' otherwise also matches
# 'dmc-room-server-mqtt-*'.
- '!dmc-room-server-mqtt-*'

jobs:
build:
# Build every room-server board via the shared matrix builder. Draft
# release on tag push.
# Build every room-server board via the shared matrix builder. Run
# by hand only.
uses: ./.github/workflows/firmware-builder.yml
with:
firmware_type: 'room-server'
Expand Down
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.17.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
3 changes: 0 additions & 3 deletions .github/workflows/build-repeater-mqtt-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
description: 'Firmware version, e.g. v1.16.0 (used as FIRMWARE_VERSION and release name)'
required: true
type: string
push:
tags:
- 'dmc-repeater-mqtt-*'

jobs:

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build-roomserver-mqtt-firmwares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
description: 'Firmware version, e.g. v1.16.0 (used as FIRMWARE_VERSION and release name)'
required: true
type: string
push:
tags:
- 'dmc-room-server-mqtt-*'

jobs:

Expand Down
Loading
Loading