Null-DRM-Official/.forgejo/workflows/modules-release.yml
404errordeveloper 2e43e6c3fa
All checks were successful
release / build-and-upload (push) Successful in 6m21s
Add ITVX module, transparent mitm_hosts, and DM Telegram announces.
Wire module mitm_hosts into StartTransparent for ITVX capture, ship the
itv provider stub with Live-list autoplay, refresh the README, and send
Forgejo release announces to private chat 7314901602.
2026-10-09 17:35:53 +02:00

83 lines
3 KiB
YAML

# Build per-module zip assets and attach them to a Forgejo release.
#
# Trigger: push a modules version tag
# git tag modules-v1.0.0 && git push origin modules-v1.0.0
name: modules-release
on:
push:
tags:
- "modules-v*"
jobs:
build-and-upload:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: apps/proxy/device/go.mod
cache: false
- name: Install zip
run: apt-get update && apt-get install -y zip
- name: Build module zips
run: |
chmod +x scripts/build-modules-release.sh
./scripts/build-modules-release.sh "${{ github.ref_name }}"
ls -la dist/release
- name: Upload to Forgejo release
uses: https://data.forgejo.org/actions/forgejo-release@v2.7.2
with:
direction: upload
url: https://git.nulldrm.com
repo: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
sha: ${{ github.sha }}
release-dir: dist/release
title: ${{ github.ref_name }}
override: true
release-notes: |
External provider modules for Null DRM (`modules-v*` release).
| Asset | Contents |
|---|---|
| `bbc.zip` | BBC iPlayer CLI + `module.yaml` (universal) |
| `rte.zip` | RTÉ Player CLI + `module.yaml` template |
| `tg4.zip` | TG4 CLI + `module.yaml` template |
| `itv.zip` | ITVX CLI stub + `module.yaml` template |
| `SHA256SUMS-modules.txt` | Checksums |
Unpack each zip into `modules/<name>/` (e.g. `bbc.zip` → `modules/bbc/`).
Each zip contains `module.yaml` only (publish template renamed — no
`module-publish.yaml`). Fill sensitive fields in `module.yaml`.
Host `drm` is released separately on `v*` tags.
Phone capture still needs Magisk + `drm proxy install-ca --reinject`.
- name: Announce on Telegram
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
# Private DM chat (@error404developer). Override via secret if needed.
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_KIND: modules
RELEASE_URL: https://git.nulldrm.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
run: |
if [ -z "$TELEGRAM_BOT_TOKEN" ]; then
echo "[!] TELEGRAM_BOT_TOKEN secret missing — skip announce"
exit 0
fi
# Release announces go to the maintainer DM (not the public group topic).
export TELEGRAM_CHAT_ID="7314901602"
unset TELEGRAM_MESSAGE_THREAD_ID || true
chmod +x scripts/notify-telegram.sh
./scripts/notify-telegram.sh "${{ github.ref_name }}"