forked from aws-samples/amazon-dynamodb-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 874 Bytes
/
Copy pathpull-request.yml
File metadata and controls
33 lines (31 loc) · 874 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
name: ValidatePR
on:
pull_request_target:
branches: [ master ]
jobs:
buildAndVerify:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
env:
STEP_S3_BUCKET: 'test.amazon-dynamodb-labs.com'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: '0'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
- name: Pull preview build
run: aws s3 sync s3://amazon-dynamodb-labs-static/build/ . && chmod +x preview_build
- name: Build Assets
run: python3 ./.github/scripts/build-assets.py