# 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 | | `SHA256SUMS-modules.txt` | Checksums | Unpack each zip into `modules//` (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 }} 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" ] || [ -z "$TELEGRAM_CHAT_ID" ]; then echo "[!] TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID secrets missing — skip announce" exit 0 fi chmod +x scripts/notify-telegram.sh ./scripts/notify-telegram.sh "${{ github.ref_name }}"