-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.37 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [ dev, master, main ]
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-2
AWS_DEFAULT_OUTPUT: json
jobs:
deploy:
runs-on: ubuntu-latest
environment: V2
steps:
- uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: "3.7"
# - uses: aws-actions/setup-sam@v1
# - uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
# aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Set up node.js
uses: actions/setup-node@v2
with:
node-version: '16.14'
- name: npm dependencies
run: npm install
- name: Build
run: npm run build
- uses: actions/setup-python@v2
with:
python-version: "3.7"
- uses: aws-actions/setup-sam@v1
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy Open API HTML Documentation
run: aws s3 sync dist/pathfinding-visualizer s3://wayfinder.com