Merge branch 'CI/BUILD-only-on-merge-to-main'
Some checks failed
Build Resume / build (push) Has been cancelled
Some checks failed
Build Resume / build (push) Has been cancelled
This commit is contained in:
commit
191a7bea03
6 changed files with 34 additions and 11 deletions
|
|
@ -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
|
||||||
8
Makefile
8
Makefile
|
|
@ -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
9
build.sh
Normal 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
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
{Staff Software Engineer} % Job title
|
{Staff Software Engineer} % Job title
|
||||||
{Forterra} % Organization
|
{Forterra} % Organization
|
||||||
{Clarksburg, Maryland} % Location
|
{Clarksburg, Maryland} % Location
|
||||||
{Dec. 2023 - Present} % Date(s)
|
{Dec. 2021 - Present} % Date(s)
|
||||||
{
|
{
|
||||||
\begin{cvitems} % Description(s) of tasks/responsibilities
|
\begin{cvitems} % Description(s) of tasks/responsibilities
|
||||||
\item {Lead design and development of cloud-native data infrastructure powering autonomous vehicle telemetry and operational analytics}
|
\item {Lead design and development of cloud-native data infrastructure powering autonomous vehicle telemetry and operational analytics}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
% Available options: circle|rectangle,edge/noedge,left/right
|
% Available options: circle|rectangle,edge/noedge,left/right
|
||||||
% \photo[rectangle,edge,right]{./examples/profile}
|
% \photo[rectangle,edge,right]{./examples/profile}
|
||||||
\name{Jean-Michel}{Tremblay}
|
\name{Jean-Michel}{Tremblay}
|
||||||
\position{Senior Software Engineer}
|
\position{Staff Software Engineer}
|
||||||
% \address{Sainte-Julie, Qu\'ebec, Canada}
|
% \address{Sainte-Julie, Qu\'ebec, Canada}
|
||||||
|
|
||||||
% \mobile{(+82) 10-9030-1843}
|
% \mobile{(+82) 10-9030-1843}
|
||||||
|
|
|
||||||
1
new_file.txt
Normal file
1
new_file.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
hello
|
||||||
Loading…
Reference in a new issue