-
Notifications
You must be signed in to change notification settings - Fork 3.9k
54 lines (49 loc) · 1.57 KB
/
dev-deploy-widget.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
47
48
49
50
51
52
53
54
name: Deploy DEV Widget
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
push:
branches:
- next
- main
paths:
- 'apps/widget/**'
- 'apps/ws/**'
- 'packages/shared/**'
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test_widget:
uses: ./.github/workflows/reusable-widget-e2e.yml
with:
ee: true
secrets: inherit
deploy_widget:
needs: test_widget
if: "!contains(github.event.head_commit.message, 'ci skip')"
uses: ./.github/workflows/reusable-widget-deploy.yml
with:
environment: Development
react_app_api_url: https://api.novu-staging.co
react_app_ws_url: https://dev.ws.novu.co
react_app_webhook_url: https://dev.webhook.novu.co
react_app_sentry_dsn: https://[email protected]/625116
react_app_environment: dev
netlify_deploy_message: Dev deployment
netlify_alias: dev
netlify_gh_env: development
netlify_site_id: b9147448-b835-4eb1-a2f0-11102f611f5f
secrets: inherit
publish_docker_image_widget:
needs: test_widget
if: "!contains(github.event.head_commit.message, 'ci skip')"
uses: ./.github/workflows/reusable-docker.yml
with:
environment: Development
package_name: novu/widget
project_path: apps/widget
local_tag: novu-widget
env_tag: dev
secrets: inherit