Skip to content

ci: publish workflow #4

ci: publish workflow

ci: publish workflow #4

Workflow file for this run

name: Publish
on:
push:
branches:
- ci
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
good-strategy-bad-strategy/good-strategy-bad-strategy.tex
work_in_root_file_dir: true
- name: Move PDFs
run: mv ./*.pdf dist
- name: Move index page
run: cp README.md dist/index.md
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
allow_empty_commit: true
force_orphan: true
enable_jekyll: true
# - name: Compile and Deploy
# uses: jonhue/pubtex-action@main
# with:
# deploy_key: ${{ secrets.GITHUB_TOKEN }}
# files: |
# good-strategy-bad-strategy/good-strategy-bad-strategy.tex