Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/build-android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
build_release:
name: Build Android Example App (release, new architecture)
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
Expand All @@ -34,14 +36,14 @@ jobs:
./gradlew clean :app:assembleRelease --no-daemon --no-build-cache

- name: Upload APK to Release
uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: apps/example/android/app/build/outputs/apk/release/app-release.apk
asset_name: "NitroExample-${{ github.event.release.tag_name }}.apk"
asset_content_type: application/vnd.android.package-archive
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
ASSET_NAME="NitroExample-${RELEASE_TAG}.apk"
mv apps/example/android/app/build/outputs/apk/release/app-release.apk "$ASSET_NAME"
gh release upload "$RELEASE_TAG" "$ASSET_NAME" --repo "$GITHUB_REPOSITORY"

# Gradle cache doesn't like daemons
- name: Stop Gradle Daemon
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/build-ios-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
build_release:
name: Build iOS Example App (release, new architecture)
runs-on: macos-26
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
Expand Down Expand Up @@ -54,11 +56,11 @@ jobs:
zip -r "$GITHUB_WORKSPACE/NitroExample-Release-Simulator.zip" NitroExample.app

- name: Upload .app to Release
uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: NitroExample-Release-Simulator.zip
asset_name: "NitroExample-Simulator-${{ github.event.release.tag_name }}.app.zip"
asset_content_type: application/zip
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
ASSET_NAME="NitroExample-Simulator-${RELEASE_TAG}.app.zip"
mv NitroExample-Release-Simulator.zip "$ASSET_NAME"
gh release upload "$RELEASE_TAG" "$ASSET_NAME" --repo "$GITHUB_REPOSITORY"
Loading