Skip to content

Commit 0d2c415

Browse files
committed
push
1 parent 45aee7e commit 0d2c415

1 file changed

Lines changed: 2 additions & 43 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ jobs:
4646
echo "Installing Source Sans Pro..."
4747
wget -O source-sans-pro.tar.gz https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2 || echo "Source Sans Pro download failed"
4848
49-
# Try alternative approach - clone the font repository
50-
echo "Attempting to install Source Sans fonts from git..."
51-
git clone --depth 1 https://github.com/adobe-fonts/source-sans-pro.git temp-source-sans || echo "Git clone failed"
52-
if [ -d "temp-source-sans" ]; then
53-
sudo mkdir -p /usr/share/fonts/truetype/source-fonts
54-
sudo find temp-source-sans -name "*.otf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No OTF files found"
55-
sudo find temp-source-sans -name "*.ttf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No TTF files found"
56-
rm -rf temp-source-sans
57-
fi
58-
59-
# Try Source Sans 3
60-
echo "Attempting to install Source Sans 3..."
61-
git clone --depth 1 https://github.com/adobe-fonts/source-sans.git temp-source-sans-3 || echo "Source Sans 3 git clone failed"
62-
if [ -d "temp-source-sans-3" ]; then
63-
sudo mkdir -p /usr/share/fonts/truetype/source-fonts
64-
sudo find temp-source-sans-3 -name "*.otf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No OTF files found"
65-
sudo find temp-source-sans-3 -name "*.ttf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No TTF files found"
66-
rm -rf temp-source-sans-3
67-
fi
68-
6949
# Install additional common fonts that might serve as substitutes
7050
echo "Installing additional font packages..."
7151
sudo apt-get install -y fonts-dejavu fonts-liberation fonts-noto fonts-open-sans || echo "Additional font installation failed"
@@ -96,31 +76,10 @@ jobs:
9676
run: |
9777
git config --global user.name "github-actions[bot]"
9878
git config --global user.email "github-actions[bot]@users.noreply.github.com"
99-
100-
# Check if there are any changes to commit
101-
if git diff --quiet cv/resume.pdf 2>/dev/null; then
102-
echo "No changes to CV, skipping commit"
103-
exit 0
104-
fi
105-
106-
# Pull latest changes first to avoid conflicts
107-
git pull --rebase origin main || echo "Pull failed, continuing anyway"
108-
109-
# Add and commit changes
79+
git pull origin main
11080
git add cv/resume.pdf
11181
git commit -m "Automated CV update [skip ci]" || echo "No changes to commit"
112-
113-
# Push with retry logic
114-
for i in {1..3}; do
115-
if git push; then
116-
echo "Push successful on attempt $i"
117-
break
118-
else
119-
echo "Push failed on attempt $i, retrying..."
120-
git pull --rebase origin main || echo "Rebase failed"
121-
sleep 2
122-
fi
123-
done
82+
git push
12483
env:
12584
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12685

0 commit comments

Comments
 (0)