diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index de52dfd..751172f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -9,22 +9,14 @@ 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: @@ -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