forked from amplitude/Amplitude-TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.02 KB
/
s3-upload-test.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
41
42
43
name: S3 Upload Test
on: workflow_dispatch
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
node-version: [12.x]
steps:
- name: Check out git repository
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install project dependencies
run: |
yarn install --frozen-lockfile
- name: Build all packages
run: |
yarn build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::358203115967:role/github-actions-role
aws-region: us-west-2
- name: Publish to S3
run: |
cd packages/analytics-browser && node scripts/publish/upload-to-s3.js
env:
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}