-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 982 Bytes
/
uat-deploy.yaml
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
# This is a basic workflow to help you get started with Actions
name: Deploy to CDP/Personalize UAT
# Controls when the workflow will run
on:
push:
branches:
- main
- releases/*
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-deploy:
runs-on: ubuntu-latest
environment: 'UAT'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/[email protected]
with:
registry-url: 'https://registry.npmjs.org'
- name: Install and Run tests
run: npm i && npm run test
- name: Authenticate to CDP/Personalize
run: npx [email protected] auth login -id '${{ secrets.CLIENTID }}' -s '${{ secrets.CLIENTSECRET }}' -l 'US' -c
- name: Deploy CDP/Personalize
run: npx [email protected] deploy