Skip to content

Deploy RSS feed

Deploy RSS feed #1346

Workflow file for this run

on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 */3 * * *'
push:
branches:
- main
name: Deploy RSS feed
jobs:
generate-feed:
name: Generate RSS feed
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate RSS feed
run: |
python main.py
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
single-commit: true
git-config-email: <>
# Cache pip dependencies
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-