LaTeX Release Conduct #2
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: '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 }} |