Skip to content

Pages Build

Pages Build #570

Workflow file for this run

name: Pages Build
on:
push:
schedule:
- cron: "0 */6 * * *"
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- run: |
mkdir build
cargo run --release ./feed.opml ./build/
pip install -r requirements.txt
python3 ./scripts/md2html.py "https://xiaozhu2007.github.io/rss-feed"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build