-
Notifications
You must be signed in to change notification settings - Fork 124
35 lines (29 loc) · 878 Bytes
/
build_publish.yml
File metadata and controls
35 lines (29 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Build and Publish PDF
on: # yamllint disable-line rule:truthy
push:
branches: [main]
workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Build PDF
uses: xu-cheng/latex-action@v4
with:
root_file: cv-gboeing.tex
- name: Compress PDF
run: >
docker run -v "$PWD:/workdir" --rm -it ptspts/pdfsizeopt
pdfsizeopt cv-gboeing.pdf cv-gboeing.pdf
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v5
with:
role-to-assume: arn:aws:iam::800820568312:role/github-actions-gboeing-cv
aws-region: us-west-2
- name: Upload PDF to AWS s3
run: aws s3 cp ./cv-gboeing.pdf s3://cv-gboeing/