generated from gucio321/agh-sphinx-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|