Skip to content

Commit 5062b3c

Browse files
fix: publish releases to runanywhere-sdks (same repo) instead of runanywhere-binaries
1 parent 73c04ac commit 5062b3c

File tree

1 file changed

+6
-61
lines changed

1 file changed

+6
-61
lines changed

.github/workflows/commons-release.yml

Lines changed: 6 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ name: Build and Release XCFrameworks
66
# - RABackendLlamaCPP.xcframework (LLM backend)
77
# - RABackendONNX.xcframework (STT/TTS/VAD backend)
88
#
9-
# It downloads runanywhere-core source from the public runanywhere-binaries
10-
# repository, builds the XCFrameworks, and publishes them.
9+
# It downloads runanywhere-core source from runanywhere-binaries releases,
10+
# builds the XCFrameworks, and publishes them as a GitHub release on this repo.
1111
#
1212
# Trigger:
1313
# - Tag push: commons-v*
@@ -36,9 +36,6 @@ on:
3636
type: boolean
3737

3838
env:
39-
# Public binaries repository for publishing XCFrameworks
40-
PUBLIC_REPO_OWNER: 'RunanywhereAI'
41-
PUBLIC_REPO_NAME: 'runanywhere-binaries'
4239
# Working directory for commons
4340
COMMONS_DIR: sdk/runanywhere-commons
4441

@@ -168,10 +165,10 @@ jobs:
168165
retention-days: 30
169166

170167
# ===========================================================================
171-
# Publish to runanywhere-binaries
168+
# Publish Release to this repo (runanywhere-sdks)
172169
# ===========================================================================
173170
publish:
174-
name: Publish to runanywhere-binaries
171+
name: Publish Release
175172
needs: build-ios
176173
if: github.event.inputs.dry_run != 'true'
177174
runs-on: ubuntu-latest
@@ -190,61 +187,9 @@ jobs:
190187
echo "=== Downloaded Artifacts ==="
191188
ls -laR dist/
192189
193-
- name: Checkout Public Binaries Repo
194-
uses: actions/checkout@v4
195-
with:
196-
repository: ${{ env.PUBLIC_REPO_OWNER }}/${{ env.PUBLIC_REPO_NAME }}
197-
token: ${{ secrets.BINARY_REPO_PAT }}
198-
path: public-repo
199-
fetch-depth: 0
200-
201-
- name: Update Public Repository
202-
run: |
203-
VERSION="${{ needs.build-ios.outputs.version }}"
204-
CORE_VERSION="${{ needs.build-ios.outputs.core_version }}"
205-
206-
cd public-repo
207-
208-
# Create releases directory
209-
mkdir -p releases/commons-v${VERSION}
210-
211-
# Copy all XCFramework ZIPs (handle nested directory from artifact download)
212-
find ../dist -name "*.zip" -exec cp {} releases/commons-v${VERSION}/ \; 2>/dev/null || true
213-
find ../dist -name "*.sha256" -exec cp {} releases/commons-v${VERSION}/ \; 2>/dev/null || true
214-
215-
# Update version files
216-
echo "${VERSION}" > LATEST_COMMONS_VERSION
217-
218-
# Git operations
219-
git config user.name "GitHub Actions Bot"
220-
git config user.email "actions@github.com"
221-
222-
git add -A
223-
git commit -m "Release runanywhere-commons v${VERSION}
224-
225-
Built with runanywhere-core: ${CORE_VERSION}
226-
227-
XCFrameworks:
228-
$(ls -1 releases/commons-v${VERSION}/*.zip 2>/dev/null | xargs -I {} basename {} || echo 'None')
229-
" || echo "No changes to commit"
230-
231-
- name: Create Git Tag
232-
run: |
233-
VERSION="${{ needs.build-ios.outputs.version }}"
234-
cd public-repo
235-
git tag -a "commons-v${VERSION}" -m "runanywhere-commons v${VERSION}" 2>/dev/null || echo "Tag already exists"
236-
237-
- name: Push to Public Repository
238-
run: |
239-
cd public-repo
240-
git push origin main --tags
241-
env:
242-
GITHUB_TOKEN: ${{ secrets.BINARY_REPO_PAT }}
243-
244190
- name: Create GitHub Release
245191
uses: softprops/action-gh-release@v2
246192
with:
247-
repository: ${{ env.PUBLIC_REPO_OWNER }}/${{ env.PUBLIC_REPO_NAME }}
248193
tag_name: commons-v${{ needs.build-ios.outputs.version }}
249194
name: RunAnywhere Commons v${{ needs.build-ios.outputs.version }}
250195
files: |
@@ -270,7 +215,7 @@ jobs:
270215
```swift
271216
.binaryTarget(
272217
name: "RACommonsBinary",
273-
url: "https://github.com/${{ env.PUBLIC_REPO_OWNER }}/${{ env.PUBLIC_REPO_NAME }}/releases/download/commons-v${{ needs.build-ios.outputs.version }}/RACommons-${{ needs.build-ios.outputs.version }}.zip",
218+
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/commons-v${{ needs.build-ios.outputs.version }}/RACommons-${{ needs.build-ios.outputs.version }}.zip",
274219
checksum: "..."
275220
),
276221
```
@@ -291,4 +236,4 @@ jobs:
291236
draft: false
292237
prerelease: false
293238
env:
294-
GITHUB_TOKEN: ${{ secrets.BINARY_REPO_PAT }}
239+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)