Skip to content

Commit 147621d

Browse files
authored
[CI] Further simplify releases (#398)
1 parent bd45a1a commit 147621d

File tree

2 files changed

+18
-58
lines changed

2 files changed

+18
-58
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/update_sdk_version.yaml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,34 @@ on:
1616
description: Ignore main branch requirement (SOC2 compliance)
1717
required: true
1818
jobs:
19-
verify-version:
20-
name: Verify arguments
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Print & verify entered "version"
24-
run: |
25-
echo "$version"
26-
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+(\.[0-9]+)?)?$ ]]; then exit 1; fi
27-
env:
28-
version: ${{ inputs.version }}
29-
30-
release:
31-
needs: "verify-version"
19+
gh-release:
3220
permissions:
33-
id-token: write # required to use OIDC authentication
3421
contents: write
35-
uses: ./.github/workflows/release.yaml
22+
uses: ./.github/workflows/release_gh.yaml
3623
with:
3724
version: ${{ inputs.version }}
3825
sha: ${{ inputs.sha }}
26+
secrets: inherit
27+
public-release:
28+
permissions:
29+
id-token: write # required to use OIDC authentication
30+
contents: read
31+
uses: ./.github/workflows/release_public.yaml
32+
with:
33+
version: ${{ inputs.version }}
3934
emergency: ${{ inputs.emergency }}
4035
secrets: inherit
36+
needs: gh-release
37+
capture-ios-release:
38+
uses: ./.github/workflows/release_capture_ios.yaml
39+
with:
40+
version: ${{ inputs.version }}
41+
needs: public-release
42+
secrets: inherit
4143

4244
update-sdk-version:
4345
name: Update SDK version
44-
needs: "verify-version"
46+
needs: public-release
4547
permissions:
4648
contents: write
4749
pull-requests: write

0 commit comments

Comments
 (0)