push to jmopines
Some checks failed
Build Resume / build (push) Failing after 2s

This commit is contained in:
Jean-Michel Tremblay 2026-04-19 21:35:07 -04:00
parent 3019a22f9d
commit 1fc0774d37

View file

@ -1,18 +1,18 @@
name: Build Resume
on: [push]
jobs:
build:
runs-on: docker
steps:
- name: Checkout
run: git clone ${{ github.server_url }}/${{ github.repository }}.git .
- name: Build
run: docker run --rm -w /doc -v $PWD:/doc thomasweise/docker-texlive-full make
- name: Rename PDFs
run: |
TIMESTAMP=$(date +%Y_%m_%d_%H:%M:%S)
cp examples/resume_jm_tremblay*.pdf examples/resume_jm_tremblay_${TIMESTAMP}.pdf
cp examples/resume_jm_tremblay*.pdf examples/resume_jm_tremblay_latest.pdf
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
@ -22,5 +22,7 @@ jobs:
run: |
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
chmod 600 /tmp/deploy_key
ssh -i /tmp/deploy_key -o StrictHostKeyChecking=no jmopines@192.168.64.102 "echo connected"
ssh -i /tmp/deploy_key -o StrictHostKeyChecking=no jmopines@192.168.64.102 "mkdir -p ~/resume"
scp -i /tmp/deploy_key -o StrictHostKeyChecking=no examples/resume_jm_tremblay_*_*.pdf jmopines@192.168.64.102:~/resume/
scp -i /tmp/deploy_key -o StrictHostKeyChecking=no examples/resume_jm_tremblay_latest.pdf jmopines@192.168.64.102:~/resume/
rm /tmp/deploy_key