Skip to content

Commit

Permalink
Set up PDF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelius committed Jan 27, 2025
1 parent 9d36fac commit 08ca074
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Generate table of contents
run: |
tools/generate_toc.py 2024
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto-generate table of contents
file_pattern: '2024/0200-toc.md'

- uses: cornelius/action-md-as-pdf@main
if: github.ref == 'refs/heads/main'
with:
markdown_dir: 2024
pdf_file: pdf/DRAFT-openrail-annual-report-2024.pdf

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto-generate PDF
file_pattern: pdf/*
Empty file added pdf/.gitkeep
Empty file.

0 comments on commit 08ca074

Please sign in to comment.