forked from AOT-Technologies/forms-flow-ai-micro-front-ends
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 936 Bytes
/
forms-flow-service.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
name: forms-flow-service-CD
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "forms-flow-service/**"
defaults:
run:
shell: bash
jobs:
build:
name: Build and push artifacts to s3
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.17.0'
- run: npm ci
working-directory: ./forms-flow-service
- run: npm run build:webpack
working-directory: ./forms-flow-service
- 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 }}
aws-region: ${{ secrets.REGION }}
- run: npm ci
working-directory: ./scripts
- run: BUCKET=${{ secrets.BUCKET}} node index forms-flow-service
working-directory: ./scripts