Skip to content

Merge pull request #1 from wesslen/openai-summary #7

Merge pull request #1 from wesslen/openai-summary

Merge pull request #1 from wesslen/openai-summary #7

Workflow file for this run

name: Rebuild Site
on:
push:
paths:
- 'data/output.jsonl'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: |
requirements-build.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-build.txt
- name: Download Quarto Package
run: wget -O package.deb https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.450/quarto-1.3.450-linux-amd64.deb
- name: Install Quarto Package
run: |
sudo dpkg -i package.deb
sudo apt-get install -f
- name: Build new site
run: |
python scripts/generate_qmd.py data/output.jsonl posts
quarto render
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add _site/
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push