-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1 KB
/
upload-to-s3.yml
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
36
37
38
39
40
name: Upload To S3
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
UploadResumeToS3:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare Build
run: |
sudo apt update && sudo apt install -y texlive-latex-base texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra
- name: Add Version
run: |
sed -i -e "s/__VERSION__/$(git rev-parse --short HEAD)/" src/resume.tex
- name: Build
run: cd src && pdflatex resume.tex
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::654654198429:role/RoleForResumeGithubActions
role-session-name: SessionResumeGithubActions
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload to S3
run: |
sudo chmod +x ./deploy/deploy.sh
./deploy/deploy.sh