Skip to content

Commit

Permalink
workflows: fix pdf builder
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Apr 17, 2024
1 parent 9c41ba5 commit 7eb2cc3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@ jobs:
sudo apt install -y latexmk texlive texlive-fonts-extra texlive-full
- name: build PDF
run: make latexpdf
- name: extract file name
run: |
# extract filename from conf.py (it is a value of variable 'project' in lowercase)
echo "filename=$(grep project conf.py | awk '{print tolower($2)}')" >> $GITHUB_ENV
- name: do some trick ;-)
shell: bash
run: |
stat '_build/latex/matematyka.pdf'
mv '_build/latex/matematyka.pdf' ..
echo "The file name is $filename"
stat '_build/latex/$filename.pdf'
mv '_build/latex/$filename.pdf' ..
rm -rf *
git add .
git config user.name gucio321
git config user.email [email protected]
mv ../matematyka.pdf .
mv ../$filename.pdf .
git add .
git commit --amend --no-edit
- name: Push changes
Expand Down

0 comments on commit 7eb2cc3

Please sign in to comment.