forked from mosip/tuvali
-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (54 loc) · 1.73 KB
/
push-trigger.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
55
56
name: Gradlew build, publish to npm registry and sonar-analysis
on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- release*
- master
- 1.*
- develop*
- MOSIP*
jobs:
build-tuvali:
uses: mosip/kattu/.github/workflows/npm-android-build.yml@master
with:
SERVICE_LOCATION: '.'
ANDROID_LOCATION: 'android'
BUILD_ARTIFACT: tuvali
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
publish-tuvali-to-npm-registry:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name == 'workflow_dispatch' }}"
needs: build-tuvali
uses: mosip/kattu/.github/workflows/npm-publish-to-npm-registry.yml@master
with:
SERVICE_LOCATION: '.'
ANDROID_LOCATION: 'android'
secrets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
sonar-analysis-tuvali:
if: "${{ github.event_name != 'pull_request' }}"
needs: build-tuvali
uses: mosip/kattu/.github/workflows/gradlew-sonar-analysis.yml@master
with:
SERVICE_LOCATION: '.'
ANDROID_LOCATION: 'android'
SONAR_URL: 'https://sonarcloud.io'
PROJECT_KEY: "mosip_${{ github.event.repository.name }}"
PROJECT_NAME: "${{ github.event.repository.name }}"
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_ORGANIZATION: ${{ secrets.ORG_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}