@devilsdev/rag-pipeline-utils
Version:
A modular toolkit for building RAG (Retrieval-Augmented Generation) pipelines in Node.js
51 lines (41 loc) โข 1.28 kB
YAML
# .github/workflows/release-sync.yml
# Version: 1.0.0
# Description: Syncs changelog/tag to blog post
# Author: Ali Kahwaji
name: ๐ Release Sync
on:
push:
tags:
- 'v*' # any pushed Git tag
paths:
- 'CHANGELOG.md'
- 'scripts/**'
- '.github/workflows/release-sync.yml'
permissions:
contents: write
id-token: write
jobs:
publish-release-blog:
name: ๐ Create Blog Post from CHANGELOG + Tag
runs-on: ubuntu-latest
steps:
- name: ๐งพ Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # get full commit history for changelog diff
- name: ๐งฐ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: ๐ฆ Install deps
run: npm ci
- name: ๐ Generate blog post
run: |
VERSION=${GITHUB_REF#refs/tags/}
PREV=$(git tag --sort=committerdate | grep -B1 $VERSION | head -n1)
node scripts/generate-release-note.js $VERSION $PREV
- name: ๐ฌ Commit release blog
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs(blog): auto-publish release notes for ${{ github.ref_name }}"
file_pattern: "docs-site/blog/*.md"