chore: update comment in build.yml #50
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 PDF" | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y \ | |
texlive-latex-extra \ | |
texlive-lang-polish \ | |
texlive-fonts-recommended \ | |
texlive-fonts-extra \ | |
make | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "poetry" | |
- name: Build final document | |
run: make all | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: statute-pl | |
path: | | |
build/statut.pdf | |
build/statut.tex | |
- name: Create release (on push to a tag named "release-*") | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/release-') | |
with: | |
files: | | |
build/statut.pdf | |
build/statut.tex |