-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 888 Bytes
/
ci.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
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm i
- run: npm run build
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
aws-region: eu-central-1
- name: Copy to S3
run: aws s3 sync . s3://lightweightgltfloader \
--exclude .git* \
--exclude .git*/** \
--exclude node_modules/** \
--exclude src/** \
--exclude package-lock.json \
--exclude package.json \
--exclude README.md \
--exclude tsconfig.json