openreader/.github/workflows/docs-deploy-on-release.yml
Richard R 92762fe858 ci(docs): separate release-triggered deploy and enhance changelog feed sync
Extract release-based deploy triggers to new workflow for clarity and
reliability. Update docs-deploy.yml to streamline dispatch inputs and
remove release/workflow_run triggers. Extend build-changelog-feed.mjs to
support incremental changelog sync via workflow_dispatch with release tag
and action, enabling precise upserts and deletions of changelog entries.
2026-05-14 17:14:43 -06:00

34 lines
919 B
YAML

name: Docs Deploy On Release
on:
release:
types: [published, edited, deleted]
permissions:
actions: write
contents: read
concurrency:
group: docs-release-relay-${{ github.event.release.tag_name }}
cancel-in-progress: true
jobs:
relay:
runs-on: ubuntu-latest
steps:
- name: Dispatch Docs Deploy on main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
TAG: ${{ github.event.release.tag_name }}
ACTION: ${{ github.event.action }}
run: |
set -euo pipefail
gh api \
-X POST \
-H "Accept: application/vnd.github+json" \
"repos/${REPO}/actions/workflows/docs-deploy.yml/dispatches" \
-f ref=main \
-f "inputs[full_reconcile]=false" \
-f "inputs[release_tag]=${TAG}" \
-f "inputs[release_action]=${ACTION}"