fix #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Rules PDF | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build_latex: | |
name: Build LaTeX document | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Set up release date | |
run: | | |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV} | |
- name: Compile LaTeX document | |
uses: dante-ev/latex-action@latest | |
with: | |
root_file: rules.tex | |
compiler: lualatex | |
args: -synctex=1 -interaction=nonstopmode -shell-escape | |
extra_font_packages: fonts | |
- name: Add new release tag | |
if: always() | |
run: | | |
git tag release-${{ env.RELEASE_DATE }} && git push origin -f refs/tags/release-${{ env.RELEASE_DATE }} | |
- name: Release | |
if: always() | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: release-${{ env.RELEASE_DATE }} | |
files: rules.pdf |