Some checks failed
Build Documentation / budowanie_dokumentacji (push) Failing after 1m7s
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Build Documentation
|
|
on: [push]
|
|
|
|
jobs:
|
|
budowanie_dokumentacji:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Reczne pobranie kodu
|
|
run: git clone http://gitea.archvium.eu:30230/OleksiiS/Dokumentacja-Latex.git repo
|
|
|
|
- name: Run Makefile in Docker
|
|
uses: docker://registry.gitlab.com/islandoftex/images/texlive:latest
|
|
with:
|
|
entrypoint: sh
|
|
args: -c "cd repo && make all"
|
|
|
|
# NOWY KROK: Zamiast upload-artifact, robimy commita z PDFami
|
|
- name: Zapisz PDFy w repozytorium
|
|
run: |
|
|
cd repo
|
|
# Konfiguracja gita wewnątrz runnera
|
|
git config --global user.name "Gitea Actions"
|
|
git config --global user.email "actions@gitea.local"
|
|
|
|
# Tworzymy nową gałąź lub przechodzimy na nią
|
|
git checkout -B gotowe-pdfy
|
|
|
|
# Dodajemy tylko pliki PDF
|
|
git add *.pdf
|
|
|
|
# Robimy commita i wypychamy na serwer
|
|
git commit -m "Automatyczna kompilacja LaTeX" || echo "Brak zmian do zapisu"
|
|
git push http://gitea.archvium.eu:30230/OleksiiS/Dokumentacja-Latex.git gotowe-pdfy -f |