Skip to content
This repository was archived by the owner on Sep 12, 2026. It is now read-only.

Small proofs

Small proofs #19

Workflow file for this run

name: Ring Switching Note PDF
on:
push:
branches: [ "main" ]
paths:
- 'misc/ring-switching.tex'
- '.github/workflows/ring-switching.yml'
pull_request:
paths:
- 'misc/ring-switching.tex'
- '.github/workflows/ring-switching.yml'
workflow_dispatch:
concurrency:
group: ring-switching-${{ github.ref }}
cancel-in-progress: true
jobs:
check-pdf:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Compile LaTeX
uses: xu-cheng/latex-action@v3
with:
working_directory: misc
root_file: ring-switching.tex
build-pdf:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Compile LaTeX
uses: xu-cheng/latex-action@v3
with:
working_directory: misc
root_file: ring-switching.tex
- name: Publish PDF as release asset
uses: softprops/action-gh-release@v2
with:
tag_name: ring-switching-latest
name: Latest ring switching note PDF
body: Auto-built from `misc/ring-switching.tex` on every push to `main`.
make_latest: false
files: misc/ring-switching.pdf