Skip to content

initial commit

initial commit #42

Workflow file for this run

name: build
on: [ push ]
jobs:
pdflatex:
runs-on: ubuntu-latest
name: Compile PDF with pdflatex
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install texlive and terraform
run: |
sudo apt-get update && \
sudo apt-get install -y texlive texlive-formats-extra latexmk gnupg software-properties-common curl && \
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - && \
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" && \
sudo apt-get update && sudo apt-get install -y terraform awscli
- name: Compile PDF with pdflatex
run: cd src && pdflatex -output-director=../assets/ cv.tex && latexmk -c -outdir=../assets/
- name: Upload PDF to artifact storage
uses: actions/upload-artifact@v4
with:
name: cv.pdf
path: assets/cv.pdf
retention-days: 5
- name: Deploy assets to AWS S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_IN_AUTOMATION: true
run: |
cd terraform/prod/ && \
terraform init -no-color -input=false && \
terraform apply -no-color -input=false -auto-approve -var="source_dir=../../assets/" -var="root_object_name=cv.pdf"