-
Notifications
You must be signed in to change notification settings - Fork 9
147 lines (135 loc) · 4.75 KB
/
Copy pathrelease-please.yml
File metadata and controls
147 lines (135 loc) · 4.75 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: Release Please
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
outputs:
package-sdk-client-released: ${{ steps.release.outputs['pkgs/sdk/client--release_created'] }}
package-sdk-server-ai-released: ${{ steps.release.outputs['pkgs/sdk/server-ai--release_created'] }}
package-sdk-server-consul-released: ${{ steps.release.outputs['pkgs/dotnet-server-sdk-consul--release_created'] }}
package-sdk-server-dynamodb-released: ${{ steps.release.outputs['pkgs/dotnet-server-sdk-dynamodb--release_created'] }}
package-sdk-server-redis-released: ${{ steps.release.outputs['pkgs/dotnet-server-sdk-redis--release_created'] }}
package-sdk-server-released: ${{ steps.release.outputs['pkgs/sdk/server--release_created'] }}
package-sdk-server-telemetry-released: ${{ steps.release.outputs['pkgs/telemetry--release_created'] }}
package-shared-common-released: ${{ steps.release.outputs['pkgs/shared/common--release_created'] }}
package-shared-common-json-net-released: ${{ steps.release.outputs['pkgs/shared/common-json-net--release_created'] }}
steps:
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: ${{ github.ref_name }}
release-sdk-client:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-client-released == 'true'}}
uses: ./.github/workflows/release-sdk-client.yml
with:
dry_run: false
# Server packages using the shared release workflow
release-sdk-server:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/sdk/server
dry_run: false
generate_provenance: true
release-sdk-server-ai:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-ai-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/sdk/server-ai
dry_run: false
generate_provenance: true
release-telemetry:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-telemetry-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/telemetry
dry_run: false
generate_provenance: true
release-sdk-server-redis:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-redis-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/dotnet-server-sdk-redis
dry_run: false
generate_provenance: true
release-sdk-server-consul:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-consul-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/dotnet-server-sdk-consul
dry_run: false
generate_provenance: true
release-sdk-server-dynamodb:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-sdk-server-dynamodb-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/dotnet-server-sdk-dynamodb
dry_run: false
generate_provenance: true
release-shared-common:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-shared-common-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/shared/common
dry_run: false
generate_provenance: true
release-shared-common-json-net:
needs: ['release-please']
permissions:
id-token: write
contents: write
attestations: write
if: ${{ needs.release-please.outputs.package-shared-common-json-net-released == 'true'}}
uses: ./.github/workflows/release.yml
with:
package_path: pkgs/shared/common-json-net
dry_run: false
generate_provenance: true