-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.41 KB
/
build.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
57
58
59
60
61
name: Build develop
on:
push:
branches: [develop]
concurrency:
group: build-develop-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
define_shared_variables:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.15.1
steps:
- name: Export variables to JSON
id: varsStep
uses: actions/github-script@v6
with:
script: core.setOutput('value', ${{ toJson(env) }})
outputs:
vars: ${{ steps.varsStep.outputs.value }}
share_variables:
uses: ./.github/workflows/define-shared-variables.yml
needs: define_shared_variables
with:
shared-variables: ${{ needs.define_shared_variables.outputs.vars }}
install_dependencies:
uses: ./.github/workflows/install-dependencies.yml
needs: share_variables
build_lib:
uses: ./.github/workflows/base-build.yml
needs: install_dependencies
with:
appName: dynamic-form
branch: temp
build_showcase:
uses: ./.github/workflows/base-build.yml
needs: install_dependencies
with:
appName: showcase
branch: temp
artifactName: showcase
deploy_to_firebase:
uses: ./.github/workflows/deploy-to-firebase.yml
needs: [build_showcase]
with:
branch: temp
artifactName: showcase
target: showcase
channelId: live
secrets:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}