This commit is contained in:
parent
3019a22f9d
commit
1fc0774d37
1 changed files with 8 additions and 6 deletions
|
|
@ -1,18 +1,18 @@
|
||||||
name: Build Resume
|
name: Build Resume
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone ${{ github.server_url }}/${{ github.repository }}.git .
|
run: git clone ${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: docker run --rm -w /doc -v $PWD:/doc thomasweise/docker-texlive-full make
|
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
|
- name: Upload PDF
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -22,5 +22,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
|
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
|
||||||
chmod 600 /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
|
rm /tmp/deploy_key
|
||||||
Loading…
Reference in a new issue