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