-
Notifications
You must be signed in to change notification settings - Fork 6
64 lines (58 loc) · 1.53 KB
/
event_release.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
62
63
64
name: ⚡ Release
run-name: 'Release / ${{ github.event.head_commit.message }}'
on:
push:
branches:
- main
- master
paths-ignore:
# - '.github/**'
- 'docs/**'
# - 'Cargo.toml'
# - 'Cargo.lock'
- 'README.md'
- 'CHANGELOG.md'
- 'LICENSE'
- 'justfile'
- 'rustfmt.toml'
- '.editorconfig'
- '.pre-commit-config.yaml'
- '.terraformignore'
- '.env.example'
concurrency: deploy
permissions:
contents: write
id-token: write
packages: write
checks: write
jobs:
paths_filter:
name: Paths Filter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: WalletConnect/actions/github/paths-filter/@2.4.2
id: filter
with:
path-app: . # release when migrations change
outputs:
infra: ${{ steps.filter.outputs.infra }}
app: ${{ steps.filter.outputs.app }}
release:
name: Release
needs: [ paths_filter ]
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
infra-changed: ${{ needs.paths_filter.outputs.infra == 'true' }}
app-changed: ${{ needs.paths_filter.outputs.app == 'true' }}
cd:
name: CD
needs: [ paths_filter, release ]
secrets: inherit
uses: ./.github/workflows/sub-cd.yml
with:
deploy-infra: ${{ needs.paths_filter.outputs.infra == 'true' }}
deploy-app: ${{ needs.paths_filter.outputs.app == 'true' }}
deploy-prod: true
version: ${{ needs.release.outputs.version }}