Skip to content

step version v2.1

step version v2.1 #68

Workflow file for this run

name: compile qr
'on':
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📄 Compile Examples
uses: xu-cheng/latex-action@v3
with:
root_file: |
qr-example.tex
fancyqr-doc.tex
- name: Install poppler-utils for previews
run: |
sudo apt install poppler-utils
- name: 'Generate previews'
run: pdftoppm -png -r 300 -f 1 -l 1 ./build/qr-example.pdf preview
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -f "build/qr-example.pdf" "build/fancyqr-doc.pdf" "preview-1.png"
git commit -m "Newly compiled data"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true