my test on new branch
All checks were successful
Build Resume / build (push) Successful in 3s

trying to ssh into jmopines web server

push to jmopines

rename properly

ISO8601 timestamps...

name resume the right thing from the beginning

mess with makefile again

makefile shenanigans

nuke makefile

test

instpect

test

test

test

test
This commit is contained in:
Jean-Michel Tremblay 2026-04-19 16:08:20 -04:00
parent b9ee39dc55
commit 458f17719d
4 changed files with 32 additions and 9 deletions

View file

@ -1,20 +1,29 @@
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: |
echo ${{ github.server_url }}
echo ${{ github.repository }}
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
# - name: Build
# run: docker run --rm -w /doc -v $PWD:/doc thomasweise/docker-texlive-full make
- 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 bash /doc/build.sh
# - name: Rename PDFs
# run: |
# 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:
name: resume name: resume
path: examples/resume_jm_tremblay*.pdf path: examples/resume_jm_tremblay*.pdf
- name: Deploy
run: |
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
chmod 600 /tmp/deploy_key
scp -i /tmp/deploy_key -o StrictHostKeyChecking=no examples/resume_jm_tremblay_*.pdf ${{ vars.JMOPINES_USER }}@${{ vars.JMOPINES_IP }}:/var/www/jmopines/resume/
rm /tmp/deploy_key

View file

@ -1,4 +1,4 @@
.PHONY: examples .PHONY: examples resume.pdf
CC = xelatex CC = xelatex
EXAMPLES_DIR = examples EXAMPLES_DIR = examples
@ -8,6 +8,10 @@ RESUME_SRCS = $(shell find $(RESUME_DIR) -name '*.tex')
CV_SRCS = $(shell find $(CV_DIR) -name '*.tex') CV_SRCS = $(shell find $(CV_DIR) -name '*.tex')
# resume.pdf: $(EXAMPLES_DIR)/resume_jm_tremblay.tex $(RESUME_SRCS)
# $(CC) -output-directory=$(EXAMPLES_DIR) $<
# mv $(EXAMPLES_DIR)/resume_jm_tremblay.pdf $(EXAMPLES_DIR)/resume_jm_tremblay_$$(date +%Y_%m_%d).pdf
resume.pdf: $(EXAMPLES_DIR)/resume_jm_tremblay.tex $(RESUME_SRCS) resume.pdf: $(EXAMPLES_DIR)/resume_jm_tremblay.tex $(RESUME_SRCS)
$(CC) -output-directory=$(EXAMPLES_DIR) $< $(CC) -output-directory=$(EXAMPLES_DIR) $<
mv $(EXAMPLES_DIR)/resume_jm_tremblay.pdf $(EXAMPLES_DIR)/resume_jm_tremblay_$$(date +%Y_%m_%d).pdf mv $(EXAMPLES_DIR)/resume_jm_tremblay.pdf $(EXAMPLES_DIR)/resume_jm_tremblay_$$(date +%Y-%m-%dT%H-%M-%S%z).pdf

9
build.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -e
TIMESTAMP=$(date +%Y-%m-%dT%H-%M-%S%z)
xelatex -output-directory=examples examples/resume_jm_tremblay.tex
mv examples/resume_jm_tremblay.pdf examples/resume_jm_tremblay_${TIMESTAMP}.pdf
cp examples/resume_jm_tremblay_${TIMESTAMP}.pdf examples/resume_jm_tremblay_latest.pdf

1
new_file.txt Normal file
View file

@ -0,0 +1 @@
hello