2026-04-19 19:41:46 +00:00
|
|
|
name: Build Resume
|
|
|
|
|
on: [push]
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
run: git clone ${{ github.server_url }}/${{ github.repository }}.git .
|
2026-04-20 01:53:41 +00:00
|
|
|
# - name: Build
|
|
|
|
|
# run: docker run --rm -w /doc -v $PWD:/doc thomasweise/docker-texlive-full make
|
2026-04-19 19:41:46 +00:00
|
|
|
- name: Build
|
2026-04-20 01:54:50 +00:00
|
|
|
run: docker run --rm -w /doc -v $PWD:/doc thomasweise/docker-texlive-full bash /doc/build.sh
|
2026-04-20 01:53:41 +00:00
|
|
|
# - name: Rename PDFs
|
|
|
|
|
# run: |
|
|
|
|
|
# cp examples/resume_jm_tremblay_*.pdf examples/resume_jm_tremblay_latest.pdf
|
2026-04-19 19:41:46 +00:00
|
|
|
- name: Upload PDF
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: resume
|
|
|
|
|
path: examples/resume_jm_tremblay*.pdf
|
2026-04-20 01:23:46 +00:00
|
|
|
- name: Deploy
|
|
|
|
|
run: |
|
|
|
|
|
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
|
|
|
|
|
chmod 600 /tmp/deploy_key
|
2026-04-20 01:35:07 +00:00
|
|
|
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/
|
2026-04-20 01:23:46 +00:00
|
|
|
rm /tmp/deploy_key
|