Skip to content

Commit 424210f

Browse files
authored
Merge pull request #8 from gboeing/s3
Publish to s3
2 parents f5042ef + db52c33 commit 424210f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/build_publish.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ on: # yamllint disable-line rule:truthy
99
jobs:
1010
build_latex:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214
steps:
13-
1415
- name: Checkout repo
1516
uses: actions/checkout@v4
1617

18+
- name: Configure AWS credentials
19+
uses: aws-actions/configure-aws-credentials@v4
20+
with:
21+
role-to-assume: arn:aws:iam::800820568312:role/github-actions-gboeing-cv
22+
aws-region: us-west-2
23+
1724
- name: Build PDF
1825
uses: xu-cheng/latex-action@v3
1926
with:
2027
root_file: cv-gboeing.tex
2128

22-
- name: Publish PDF
23-
uses: appleboy/scp-action@v0.1.7
24-
with:
25-
host: ${{ secrets.SSH_HOST }}
26-
username: ${{ secrets.SSH_USERNAME }}
27-
key: ${{ secrets.SSH_KEY }}
28-
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
29-
source: cv-gboeing.pdf
30-
target: ~/public_html/share
31-
use_insecure_cipher: true
29+
- name: Upload PDF to s3
30+
run: aws s3 cp ./cv-gboeing.pdf s3://cv-gboeing/

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ repos:
3030
- --strict
3131
- >
3232
-d={extends: default, rules: {
33+
line-length: {max: 90},
3334
quoted-strings: {quote-type: single,
3435
required: only-when-needed}}}
3536

0 commit comments

Comments
 (0)