-
Notifications
You must be signed in to change notification settings - Fork 53
53 lines (47 loc) · 1.21 KB
/
dispatch_publish.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
name: ⚙️ Publish
run-name: "Publish: ${{ github.sha }}${{ inputs.deploy-to != 'none' && format(' ❱❱ {0}', inputs.deploy-to) || ''}}"
on:
workflow_dispatch:
inputs:
deploy-to:
description: "Deploy published image to"
type: choice
options:
- none
- staging
- prod
default: staging
required: true
concurrency: deploy
permissions:
contents: write
checks: write
id-token: write
packages: write
jobs:
ci:
name: CI
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
check-infra: false
check-app: true
check-udeps: false
release:
name: Release
uses: WalletConnect/ci_workflows/.github/workflows/release.yml@fix/bump_actions_version
secrets: inherit
with:
infra-changed: false
app-changed: true
cd:
name: CD
needs: [ release ]
if: ${{ inputs.deploy-to == 'staging' || inputs.deploy-to == 'prod' }}
secrets: inherit
uses: ./.github/workflows/sub-cd.yml
with:
deploy-infra: false
deploy-app: true
deploy-prod: ${{ inputs.deploy-to == 'prod' }}
version: ${{ needs.release.outputs.version }}