Create rss-feed.yml

This commit is contained in:
drifty
2025-08-07 21:09:34 +05:30
committed by GitHub
parent 783fd7b80c
commit 299ac988c5

39
.github/workflows/rss-feed.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
# .github/workflows/rss-feed.yml
name: Generate RSS Feed with Diffs
on:
push:
branches:
- main # or your default branch
jobs:
generate-rss:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate RSS feed
env:
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
REPO_BRANCH: main
run: python scripts/generate_rss.py
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./public