Skip to content

Merge pull request #13 from colisee/debian #6

Merge pull request #13 from colisee/debian

Merge pull request #13 from colisee/debian #6

Workflow file for this run

name: build-pdf
on:
push:
branches:
- 'master'
paths-ignore:
- 'README.md'
- 'Makefile'
- 'LICENSE.txt'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out the master branch of this repository
- uses: actions/checkout@v3
with:
ref: master
path: master
# Checks-out the gh-pages branch of this repository
- uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages
# Build vc.tex
- name: build-vc
run: |
echo "%%% This file is generated by Makefile." > vc.tex
echo "%%% Do not edit this file!" >> vc.tex
echo "" >> vc.tex
git log -1 --format="format:\
\\gdef\\GITAbrHash{%h}\
\\gdef\\GITAuthorDate{%ad}\
\\gdef\\GITAuthorName{%an}" >> vc.tex
working-directory: master
# Build mmbtools.pdf
- name: build-pdf
uses: xu-cheng/latex-action@v2
with:
working_directory: master
root_file: mmbtools.tex
post_compile: mv mmbtools.pdf ../gh-pages
# Commit mmbtools.pdf
- name: commit-pdf
run: |
git config user.name "Open Digital Radio"
git config user.email [email protected]
git add -f mmbtools.pdf
git commit -m "generated by github action build-pdf"
working-directory: gh-pages
- name: push-pdf
uses: ad-m/github-push-action@master
with:
directory: gh-pages
branch: gh-pages