use new action runner
This commit is contained in:
@@ -9,23 +9,15 @@ on:
|
||||
|
||||
jobs:
|
||||
render-cv:
|
||||
runs-on: python-latest
|
||||
runs-on: site-builder
|
||||
steps:
|
||||
- name: Install Deploy Tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y git rsync openssh-client
|
||||
git clone --depth 1 "http://localhost:3000/${{ github.repository }}.git" .
|
||||
- name: Clone
|
||||
run: git clone --depth 1 "http://localhost:3000/${{ github.repository }}.git" .
|
||||
|
||||
- name: Render CV
|
||||
run: |
|
||||
# Use uvx to run rendercv instantly.
|
||||
uvx --with "rendercv[full]" rendercv render resume.yaml
|
||||
|
||||
# Prepare for rsync
|
||||
mkdir -p ./deploy
|
||||
find rendercv_output -name "*.pdf" -exec cp {} ./deploy/cv.pdf \;
|
||||
|
||||
- name: Deploy CV via Rsync
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
@@ -41,5 +33,5 @@ jobs:
|
||||
# Sync only the PDF
|
||||
rsync -avz \
|
||||
-e "ssh -p $REMOTE_PORT" \
|
||||
./deploy/cv.pdf \
|
||||
./rendercv_output/*.pdf \
|
||||
$REMOTE_USER@$REMOTE_HOST:/var/www/cv.pdf
|
||||
|
||||
Reference in New Issue
Block a user