Skip to content

Commit

Permalink
fix: export resume
Browse files Browse the repository at this point in the history
  • Loading branch information
01Joseph-Hwang10 committed Aug 29, 2023
1 parent 8d010a7 commit 9e06f4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/export-resume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -e

# Repository information
OWNER="01Joseph-Hwang10"
REPO="01joseph-hwang10.github.io"
BRANCH="gh-pages"

RESUME_TYPE=$1
FILENAME="resume-$RESUME_TYPE.pdf"

echo "Checking out gh-pages branch..."

git config --local user.email "[email protected]"
Expand All @@ -13,9 +21,6 @@ git pull

echo "Exporting resume to $FILENAME..."

RESUME_TYPE=$1
FILENAME="resume-$RESUME_TYPE.pdf"

rm -f "$FILENAME"

_initialDocURLs="$WEBPAGE_URL/docs/resume/$RESUME_TYPE"
Expand Down Expand Up @@ -83,11 +88,6 @@ qpdf --empty --pages "$_outputPDFFilename" 2-z -- "$FILENAME"

echo "Move file to appropriate directory..."

# Repository information
OWNER="01Joseph-Hwang10"
REPO="01joseph-hwang10.github.io"
BRANCH="gh-pages"

# Path to the PDF file you want to upload
FILEPATH="files/resume/$FILENAME"

Expand Down

0 comments on commit 9e06f4c

Please sign in to comment.