-
Notifications
You must be signed in to change notification settings - Fork 1.2k
71 lines (66 loc) · 2.13 KB
/
publish.yml
File metadata and controls
71 lines (66 loc) · 2.13 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: publish
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch: # Allows manual trigger of the workflow
inputs:
custom_version: # Optional input for a custom version
description: 'Custom version to publish (e.g., v1.2.3) -- only edit if you know what you are doing'
required: false
type: string
token:
description: 'Personal Access Token'
required: true
default: ""
type: string
publish_ui:
description: 'Publish to NPM?'
required: true
default: true
type: boolean
workflow_call: # Allows trigger the workflow from other workflow
inputs:
custom_version: # Optional input for a custom version
description: 'Custom version to publish (e.g., v1.2.3) -- only edit if you know what you are doing'
required: false
type: string
token:
description: 'Personal Access Token'
required: true
default: ""
type: string
publish_ui:
description: 'Publish to NPM?'
required: true
default: true
type: boolean
jobs:
publish-python-sdk:
uses: ./.github/workflows/publish_python_sdk.yml
secrets: inherit
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token }}
build-publish-docker-images:
uses: ./.github/workflows/publish_images.yml
needs: [ publish-python-sdk ]
secrets: inherit
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token }}
publish-helm-charts:
uses: ./.github/workflows/publish_helm_charts.yml
needs: [ publish-python-sdk ]
secrets: inherit
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token }}
publish-web-ui:
uses: ./.github/workflows/publish_web_ui.yml
needs: [ publish-python-sdk ]
secrets: inherit
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token || github.token }}
publish_ui: ${{ github.event.inputs.publish_ui != 'false' }}