Upload to Actions and to Release if Tag is present #6
Workflow file for this run
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: Renderuj Statut z pliku źródłowego LaTeX | |
on: [push] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: Statut_HSP.tex | |
- name: Upload PDF file | |
uses: actions/upload-artifact@v4 | |
with: | |
name: PDF | |
path: Statut_HSP.pdf | |
- name: Upload PDF file to Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: Statut_HSP.pdf |