Skip to content

LaTeX Release Conduct #2

LaTeX Release Conduct

LaTeX Release Conduct #2

name: 'LaTeX Release Conduct'
on:
push:
branches:
- main
paths:
- 'LaTeX/conduct/**'
workflow_dispatch:
jobs:
LaTeXConductRelease:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Compile BES Conduct LaTeX doc
uses: xu-cheng/latex-action@v3
with:
root_file: BES_Conduct_Afisaj.tex
working_directory: LaTeX/conduct/
latexmk_shell_escape: true
- name: Generate Release Tag
id: tag
run: |
echo "::set-output name=release_tag::BES_$(date +"%Y.%m.%d_%H-%M")"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: 'LaTeX/conduct/BES_Conduct_Afisaj.pdf'
tag_name: ${{ steps.tag.outputs.release_tag }}
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}