-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.47 KB
/
temp-flow.yml
File metadata and controls
53 lines (44 loc) · 1.47 KB
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
47
48
49
50
name: Temp Release
on:
pull_request:
types: [opened,reopened,edited,synchronize]
branches:
- temp-release
paths-ignore:
- docs/**
- README.md
env:
BRANCH_NAME: '${{ github.event.inputs.branch_name || github.head_ref || github.ref_name }}'
NODE_VERSION: 16
JAVA_VERSION: 11
JAVA_DISTRIBUTION: 'adopt'
jobs:
test-build:
name: Test-build
runs-on: arc-standard-small-set
steps:
- name: Checkout ${{ github.ref_name }}
uses: actions/checkout@v3
- name: Setup .npmrc
uses: bduff9/use-npmrc@v1.1
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}
- name: Install Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Install dependencies
run: npm install
- name: Call the Build bash script for QA
run: bash ${GITHUB_WORKSPACE}/deployment/temp.sh
- name: Invalidate cache at CDN
run: |
echo -en "Invalidating cloudfrond distribution for webSDK scripts ...\n"
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id E10P37NG0GMER --paths /branch-latest.min.js /example.html /branch-v2.0.0.min.js