-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
459d34c
commit ddb0c21
Showing
3 changed files
with
31 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Generate PDF | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**/*.tex' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Docker container to generate PDF | ||
run: ./build.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
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 |
---|---|---|
@@ -1 +1,11 @@ | ||
docker run -v "$(pwd)":/usr/src/tex --rm rekka/tectonic tectonic cv.tex | ||
set -e | ||
|
||
docker run -v "$(pwd)":/usr/src/tex --rm rekka/tectonic tectonic cv.tex | ||
|
||
if [[ `git status --porcelain` ]]; then | ||
git config user.email "[email protected]" | ||
git config user.name "Evgeny Bokshitsky" | ||
git add cv.pdf | ||
git commit -m "generate new pdf" | ||
git push | ||
fi |