Shared GitHub Actions for every BaryoDev repo.
.github/workflows/announce.yml is a reusable workflow that posts a release to this org's
Announcements discussions. Call it from any repo's publish workflow so shipping anything —
npm, NuGet, a Docker image — announces itself. It's idempotent: the same title is posted once.
Requirement: add an ANNOUNCE_TOKEN secret to the calling repo (or org-wide) — a fine-grained
PAT with Discussions: read and write on BaryoDev/.github.
jobs:
# ... your publish job ...announce:
needs: publishuses: BaryoDev/.github/.github/workflows/announce.yml@mainwith:
package: "@baryodev/pwa-kit"version: ${{ github.event.release.tag_name || github.ref_name }}notes: ${{ github.event.release.body }}install: "npm i @baryodev/pwa-kit"secrets:
ANNOUNCE_TOKEN: ${{ secrets.ANNOUNCE_TOKEN }}announce:
needs: pack-and-pushuses: BaryoDev/.github/.github/workflows/announce.yml@mainwith:
package: "BarakoCMS.<Module>"version: ${{ github.event.release.tag_name || inputs.version }}notes: ${{ github.event.release.body }}install: "dotnet add package BarakoCMS.<Module> --version <version>"secrets:
ANNOUNCE_TOKEN: ${{ secrets.ANNOUNCE_TOKEN }}announce:
needs: build-and-pushuses: BaryoDev/.github/.github/workflows/announce.yml@mainwith:
package: "barako-cms (docker)"version: ${{ github.event.release.tag_name || github.ref_name }}notes: ${{ github.event.release.body }}install: "docker pull arnelirobles/barako-cms:<tag>"secrets:
ANNOUNCE_TOKEN: ${{ secrets.ANNOUNCE_TOKEN }}| Input | Required | Notes |
|---|---|---|
package | yes | Display name of what shipped. |
version | yes | Version/tag; a leading v is trimmed. |
notes | no | Release notes markdown; falls back to a one-liner. |
install | no | Install/pull command, shown in a code block. |