Skip to content

Renderer

Renderer #198

Workflow file for this run

name: Renderer
on:
schedule:
- cron: "50 14 * * *"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
Render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Install Sudo Dependencies
run: |
sudo apt-get update
sudo apt-get install libmagickwand-dev
sudo pip install rich
- name: Install Dependencies
run: pip install pyyaml jinja2 rich wand
- name: Install Fonts
env:
API_KEY: ${{ secrets.API_KEY }}
run: sudo -E python3 download_fonts.py
- name: Build
run: python3 generator.py
- name: Create artifact
run: tar cvf artifact.tar ./progress.png ./progress.svg ./index.html
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: "github-pages"
path: artifact.tar
Deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: Render
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4