Skip to content

Commit

Permalink
#24: Avoid fail when no files to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpowis committed Aug 9, 2023
1 parent 714a4ce commit b26c0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
- name: Copy pdf files to github-pages
run: |
mkdir -p ./github-pages/assets/cv
rm ./github-pages/assets/cv/*
rm -f ./github-pages/assets/cv/*
for file in cv/*.pdf; do
echo "Copying $file"
cp -R "$file" ./github-pages/assets/cv/
done
- name: Update redirects for regular pdf
run: |
rm ./github-pages/_redirects/cv.html
rm -f ./github-pages/_redirects/cv.html
file=$(find ./cv -type f ! -name "DARK" -print -quit)
cat << EOF > ./github-pages/_redirects/cv.html
---
Expand All @@ -52,7 +52,7 @@ jobs:
EOF
- name: Update redirects for dark pdf
run: |
rm ./github-pages/_redirects/cv_dark.html
rm -f ./github-pages/_redirects/cv_dark.html
file=$(find ./cv -type f -name "DARK" -print -quit)
cat << EOF > ./github-pages/_redirects/cv_dark.html
---
Expand Down

0 comments on commit b26c0a0

Please sign in to comment.