Skip to content

Commit 279ad67

Browse files
solved issue of mixed state on one kit failing to push
1 parent a15300f commit 279ad67

File tree

1 file changed

+51
-11
lines changed

1 file changed

+51
-11
lines changed

.github/workflows/release-ecosystem-from-main.yml

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ permissions:
2424
contents: write
2525

2626
jobs:
27-
mirror-and-release-kits:
27+
build-kits:
28+
name: Build ${{ matrix.kit.name }}
2829
runs-on: macOS-latest
2930
env:
30-
DEST_ORG: mparticle-integrations
3131
XCODE_VERSION: "16.4"
3232
strategy:
3333
fail-fast: false
@@ -58,14 +58,6 @@ jobs:
5858
with:
5959
fetch-depth: 0
6060

61-
- name: Get ecosystem version
62-
id: version
63-
run: |
64-
VERSION=$(head -n 1 VERSION | tr -d '\r\n ')
65-
echo "version=$VERSION" >> $GITHUB_OUTPUT
66-
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
67-
echo "📌 Ecosystem version: $VERSION"
68-
6961
- name: Select Xcode
7062
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
7163

@@ -101,6 +93,54 @@ jobs:
10193
zip -r "${MODULE}.xcframework.zip" "${MODULE}.xcframework"
10294
rm -rf archives "${MODULE}.xcframework"
10395
96+
- name: Upload xcframework artifact
97+
uses: actions/upload-artifact@v4
98+
with:
99+
name: xcframework-${{ matrix.kit.name }}
100+
path: ${{ matrix.kit.module }}.xcframework.zip
101+
102+
mirror-and-release-kits:
103+
name: Mirror & Release ${{ matrix.kit.name }}
104+
runs-on: macOS-latest
105+
needs: build-kits
106+
env:
107+
DEST_ORG: mparticle-integrations
108+
strategy:
109+
fail-fast: false
110+
matrix:
111+
kit:
112+
- name: braze-12
113+
local_path: kits/braze/braze-12
114+
dest_repo: mparticle-apple-integration-braze-12
115+
module: mParticle_Braze
116+
# - name: braze-13
117+
# local_path: kits/braze/braze-13
118+
# dest_repo: mparticle-apple-integration-braze-13
119+
# module: mParticle_Braze
120+
# - name: braze-14
121+
# local_path: kits/braze/braze-14
122+
# dest_repo: mparticle-apple-integration-braze-14
123+
# module: mParticle_Braze
124+
125+
steps:
126+
- name: Checkout monorepo
127+
uses: actions/checkout@v6
128+
with:
129+
fetch-depth: 0
130+
131+
- name: Download xcframework artifact
132+
uses: actions/download-artifact@v4
133+
with:
134+
name: xcframework-${{ matrix.kit.name }}
135+
136+
- name: Get ecosystem version
137+
id: version
138+
run: |
139+
VERSION=$(head -n 1 VERSION | tr -d '\r\n ')
140+
echo "version=$VERSION" >> $GITHUB_OUTPUT
141+
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
142+
echo "📌 Ecosystem version: $VERSION"
143+
104144
- name: Generate GitHub App Token
105145
id: generate-token
106146
uses: actions/create-github-app-token@v1
@@ -141,7 +181,7 @@ jobs:
141181
owner: ${{ env.DEST_ORG }}
142182
repo: ${{ matrix.kit.dest_repo }}
143183
token: ${{ steps.generate-token.outputs.token }}
144-
artifacts: ${{ matrix.kit.module }}.xcframework.zip
184+
artifacts: xcframework-${{ matrix.kit.name }}/${{ matrix.kit.module }}.xcframework.zip
145185
body: |
146186
${{ steps.release-notes.outputs.release_notes }}
147187

0 commit comments

Comments
 (0)