release(desktop): Release v1.6.0 (#4970)
* docs(mobile): prepare release changelog * release(mobile): release v0.4.1 * fix(ssr): route dist-external assets (#4956) * fix(cli): close login callback sockets (#4957) * fix(ci): sync release branches to dev via pull request * fix(mobile): increase ai summary font size * fix(desktop): improve pdf export layout and branding * fix(mobile): refresh social login state * fix: correct French translation language detection * build(deps): bump android-actions/setup-android from 3 to 4 (#4929) Bumps [android-actions/setup-android](https://github.com/android-actions/setup-android) from 3 to 4. - [Release notes](https://github.com/android-actions/setup-android/releases) - [Commits](https://github.com/android-actions/setup-android/compare/v3...v4) --- updated-dependencies: - dependency-name: android-actions/setup-android dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(ai-chat): show reset date for future credits * feat: refine spotlight settings and highlighting * feat: add spotlight settings across desktop and mobile * build(deps): bump actions/github-script from 8 to 9 (#4961) Bumps [actions/github-script](https://github.com/actions/github-script) from 8 to 9. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v8...v9) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '9' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump signpath/github-action-submit-signing-request (#4960) Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 2.0 to 2.1. - [Release notes](https://github.com/signpath/github-action-submit-signing-request/releases) - [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v2.0...v2.1) --- updated-dependencies: - dependency-name: signpath/github-action-submit-signing-request dependency-version: '2.1' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(mobile): avoid YouTube embed error on iOS close #4958 * fix(mobile): patch fmt for Xcode 26.4 builds * build(deps): bump pnpm/action-setup from 4 to 5 (#4922) Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4 to 5. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v4...v5) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(desktop): migrate tts to folo service * docs(ota): add OTA service design spec * feat(ota): scaffold Cloudflare worker app * fix(ota): align scaffold with task spec * fix(ota): use standard worker types * fix(ota): tighten scaffold schema and dev config * fix(ota): require at least one platform * fix(ota): use dev env for local wrangler * docs(ota): add implementation plan and release scoping * chore(ota): update lockfile for worker deps * feat(ota): add release selection primitives * test(ota): cover incompatible newer release selection * fix(ota): tighten release compatibility checks * fix(ota): reject empty platform payloads * feat(ota): add kv helpers and policy logic * fix(ota): enforce min binary store policy * feat(ota): fetch OTA releases from GitHub * fix(ota): return GitHub release etags * feat(ota): mirror release payloads into R2 * fix(ota): stream mirrored archive extraction * fix(ota): verify mirrored asset hashes * feat(ota): serve manifests assets and policy * fix(ota): harden manifest and policy routes * fix(ota): validate route semver inputs * fix(ota): verify manifest pointer version * feat(ota): add sync orchestration routes * fix(ota): dedupe concurrent sync passes * feat(mobile): enable OTA background updates * fix(mobile): restore OTA provider typecheck * feat(mobile): add streaming tts playback * fix(mobile): align OTA provider state * feat(mobile): add ota policy client and debug controls * fix(mobile): harden ota policy and debug controls * test(mobile): cover ota provider helpers * ci(desktop): automate Mac App Store pkg upload * feat(ota): generate release assets from mobile export * test(mobile): fix ota provider test typing * test(mobile): discover ota script test via explicit config * fix: tighten OTA release asset metadata handling * fix: require OTA platform asset arrays * ci(ota): publish releases and trigger sync * fix(ci): harden ota publish workflow * ci(ota): tighten trailer validation * docs(ota): add rollout and rollback runbook * feat(mobile): upgrade expo sdk 55 and rnfirebase * fix(ota): emit expo-compatible update identifiers * fix(ota): support private GitHub release assets * fix(mobile): unblock ios archive on expo sdk 55 * build(deps): bump pnpm/action-setup from 5 to 6 (#4962) Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5 to 6. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v5...v6) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(ci): restore ota typing and tailwind config compatibility * test(mobile): fix ota provider test typing * chore(ota): persist production cloudflare bindings * fix(ci): restore semver types and ota test mocks * feat(release): drive mobile release mode from config files * fix(ota): sign manifests and pin runtime version * fix(ci): disable frozen lockfile for local eas builds * docs(spec): add desktop ota unification design * feat(ota): unify desktop updates with ota service * fix(ota): harden desktop sync and updater flow * docs(skill): update desktop release workflow * fix(release): repair ota and desktop update flows * feat: cache storefront versions for ota policy * feat: expose ota version badges * feat: expose ota version badges * fix: backfill github version badges * fix: backfill github version badges * docs(skills): align release modes with implementation * fix: update Discord invite link in README.md * fix: update macOS and Windows app store links in README.md * fix: update GitHub badge labels in README.md * build(deps): bump actions/download-artifact from 5 to 8 (#4969) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v5...v8) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump softprops/action-gh-release from 2 to 3 (#4968) Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs(release): prepare desktop and mobile release metadata * release(desktop): release v1.6.0 * fix(desktop): restore spotlight settings sync * fix(desktop): apply spotlight highlights in entry rendering * fix(desktop): extend spotlight highlight coverage --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
dependabot[bot]
parent
b469f07029
commit
bfbce383a2
@@ -46,7 +46,7 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: 🏗 Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
distribution: "zulu"
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
uses: android-actions/setup-android@v4
|
||||
|
||||
- name: 📱 Setup EAS
|
||||
uses: expo/expo-github-action@v8
|
||||
@@ -75,6 +75,8 @@ jobs:
|
||||
- name: 🔨 Build Android app
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform android --profile ${{ github.event.inputs.profile || 'preview' }} --local --output=${{ github.workspace }}/build.${{ github.event.inputs.profile == 'production' && 'aab' || 'apk' }}
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
|
||||
- name: 📤 Upload apk Artifact
|
||||
if: github.event.inputs.profile != 'production'
|
||||
@@ -126,7 +128,7 @@ jobs:
|
||||
|
||||
- name: Create Release Draft
|
||||
if: github.event.inputs.release == 'true'
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
name: Mobile v${{ steps.version.outputs.APP_VERSION }}
|
||||
draft: true
|
||||
|
||||
@@ -17,6 +17,10 @@ on:
|
||||
store:
|
||||
type: boolean
|
||||
description: "Build for Mac App Store and Microsoft Store"
|
||||
upload_to_app_store:
|
||||
type: boolean
|
||||
description: "Upload the Mac App Store pkg to App Store Connect"
|
||||
default: true
|
||||
build_version:
|
||||
type: string
|
||||
description: "Build Version, only available when mas is true"
|
||||
@@ -68,7 +72,7 @@ jobs:
|
||||
lfs: true
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v6
|
||||
@@ -210,6 +214,24 @@ jobs:
|
||||
apps/desktop/out/make/**/*.pkg
|
||||
retention-days: 90
|
||||
|
||||
- name: Upload Mac App Store package to App Store Connect
|
||||
if: runner.os == 'macOS' && github.event.inputs.store == 'true' && github.event.inputs.upload_to_app_store == 'true'
|
||||
env:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
pkg_path="$(find apps/desktop/out/make -type f -name '*.pkg' | sort | head -n 1)"
|
||||
|
||||
if [ -z "$pkg_path" ]; then
|
||||
echo "No Mac App Store package found under apps/desktop/out/make" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
.github/scripts/upload-mas-pkg.sh "$pkg_path"
|
||||
|
||||
- name: Upload file (windows-x64-exe unsigned)
|
||||
uses: actions/upload-artifact@v7
|
||||
id: upload-unsigned-windows-x64-exe
|
||||
@@ -221,7 +243,7 @@ jobs:
|
||||
apps/desktop/out/make/**/latest.yml
|
||||
retention-days: 90
|
||||
|
||||
- uses: signpath/github-action-submit-signing-request@v2.0
|
||||
- uses: signpath/github-action-submit-signing-request@v2.1
|
||||
continue-on-error: true
|
||||
if: runner.os == 'windows' && env.RELEASE == 'true' && github.event.inputs.store != 'true'
|
||||
with:
|
||||
@@ -267,6 +289,47 @@ jobs:
|
||||
apps/desktop/out/make/**/latest-linux.yml
|
||||
retention-days: 90
|
||||
|
||||
- name: Prepare release assets for aggregation
|
||||
if: env.RELEASE == 'true'
|
||||
env:
|
||||
DESKTOP_RELEASE_ASSET_DIR: ${{ runner.temp }}/desktop-release-assets
|
||||
run: |
|
||||
node --input-type=module <<'EOF'
|
||||
import { cpSync, existsSync, mkdirSync, rmSync } from "node:fs"
|
||||
import { join } from "node:path"
|
||||
|
||||
const stageDir = process.env.DESKTOP_RELEASE_ASSET_DIR
|
||||
|
||||
if (!stageDir) {
|
||||
throw new Error("DESKTOP_RELEASE_ASSET_DIR is not set")
|
||||
}
|
||||
|
||||
rmSync(stageDir, { recursive: true, force: true })
|
||||
mkdirSync(join(stageDir, "apps", "desktop", "out"), { recursive: true })
|
||||
|
||||
const pathsToCopy = [
|
||||
["apps/desktop/out/make", join(stageDir, "apps", "desktop", "out", "make")],
|
||||
["apps/desktop/dist", join(stageDir, "apps", "desktop", "dist")],
|
||||
]
|
||||
|
||||
for (const [sourcePath, destinationPath] of pathsToCopy) {
|
||||
if (!existsSync(sourcePath)) {
|
||||
continue
|
||||
}
|
||||
|
||||
cpSync(sourcePath, destinationPath, { recursive: true })
|
||||
}
|
||||
EOF
|
||||
|
||||
- name: Upload release assets for aggregation
|
||||
if: env.RELEASE == 'true'
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: desktop-release-assets-${{ runner.os }}
|
||||
path: ${{ runner.temp }}/desktop-release-assets/apps
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
|
||||
- name: Generate artifact attestation
|
||||
if: env.RELEASE == 'true'
|
||||
continue-on-error: true
|
||||
@@ -281,21 +344,68 @@ jobs:
|
||||
apps/desktop/dist/manifest.yml
|
||||
apps/desktop/dist/*.tar.gz
|
||||
|
||||
publish-release:
|
||||
if: github.secret_source != 'None' && needs.release.result == 'success' && (github.event.inputs.tag_version == 'true' || github.ref_type == 'tag')
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository Fully
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
lfs: true
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Download release assets
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
pattern: desktop-release-assets-*
|
||||
path: .
|
||||
merge-multiple: true
|
||||
|
||||
- name: Ensure zstd
|
||||
shell: bash
|
||||
run: |
|
||||
if command -v zstd >/dev/null 2>&1; then
|
||||
zstd --version
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y zstd
|
||||
|
||||
- name: Build desktop OTA release assets
|
||||
env:
|
||||
OTA_PRODUCT: desktop
|
||||
run: node .github/scripts/build-ota-release.mjs
|
||||
|
||||
- run: npx changelogithub
|
||||
if: env.RELEASE == 'true'
|
||||
continue-on-error: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Setup Version
|
||||
if: env.RELEASE == 'true'
|
||||
id: version
|
||||
uses: ./.github/actions/setup-version
|
||||
with:
|
||||
type: "desktop"
|
||||
|
||||
- name: Prepare Release Notes
|
||||
if: env.RELEASE == 'true'
|
||||
id: release_notes
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -315,20 +425,39 @@ jobs:
|
||||
|
||||
echo "body_path=${release_notes_file}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Prepare release files
|
||||
id: release_files
|
||||
shell: bash
|
||||
run: |
|
||||
release_files="$RUNNER_TEMP/desktop-release-files.txt"
|
||||
|
||||
cat <<'EOF' > "$release_files"
|
||||
apps/desktop/out/make/**/Folo-*.dmg
|
||||
apps/desktop/out/make/**/Folo-*.zip
|
||||
apps/desktop/out/make/**/Folo-*.exe
|
||||
apps/desktop/out/make/**/Folo-*.AppImage
|
||||
apps/desktop/out/make/**/*.yml
|
||||
apps/desktop/dist/manifest.yml
|
||||
apps/desktop/dist/*.tar.gz
|
||||
apps/desktop/dist/ota-release.json
|
||||
EOF
|
||||
|
||||
if [ -f apps/desktop/dist.tar.zst ]; then
|
||||
echo "apps/desktop/dist.tar.zst" >> "$release_files"
|
||||
fi
|
||||
|
||||
{
|
||||
echo "files<<EOF"
|
||||
cat "$release_files"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create Release Draft
|
||||
if: env.RELEASE == 'true'
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
name: Desktop v${{ steps.version.outputs.APP_VERSION }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
tag_name: desktop/v${{ steps.version.outputs.APP_VERSION }}
|
||||
body_path: ${{ steps.release_notes.outputs.body_path }}
|
||||
files: |
|
||||
apps/desktop/out/make/**/Folo-*.dmg
|
||||
apps/desktop/out/make/**/Folo-*.zip
|
||||
apps/desktop/out/make/**/Folo-*.exe
|
||||
apps/desktop/out/make/**/Folo-*.AppImage
|
||||
apps/desktop/out/make/**/*.yml
|
||||
apps/desktop/dist/manifest.yml
|
||||
apps/desktop/dist/*.tar.gz
|
||||
files: ${{ steps.release_files.outputs.files }}
|
||||
|
||||
@@ -55,6 +55,7 @@ jobs:
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform ios --profile development --non-interactive --local --output=./build.ipa
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
|
||||
CI: true
|
||||
|
||||
@@ -84,7 +85,7 @@ jobs:
|
||||
uses: ./.github/actions/setup-xcode
|
||||
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: 🏗 Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
@@ -105,6 +106,7 @@ jobs:
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform ios --profile development --non-interactive --local --output=./build.ipa
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
CI: true
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
|
||||
# Optional: Upload artifact
|
||||
@@ -128,7 +130,7 @@ jobs:
|
||||
uses: ./.github/actions/setup-xcode
|
||||
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: 🏗 Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
@@ -149,6 +151,7 @@ jobs:
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform ios --profile ios-simulator --non-interactive --local --output=./build-simulator.ipa
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
CI: true
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
|
||||
# Optional: Upload artifact
|
||||
|
||||
@@ -63,6 +63,7 @@ jobs:
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform ios --profile ${{ github.event.inputs.profile || 'preview' }} --non-interactive --local --output=./build.ipa
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
|
||||
CI: true
|
||||
|
||||
@@ -97,7 +98,7 @@ jobs:
|
||||
uses: ./.github/actions/setup-xcode
|
||||
|
||||
- name: 📦 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: 🏗 Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
@@ -118,6 +119,7 @@ jobs:
|
||||
working-directory: apps/mobile
|
||||
run: eas build --platform ios --profile ${{ github.event.inputs.profile || 'preview' }} --non-interactive --local --output=./build.ipa
|
||||
env:
|
||||
EAS_NO_FROZEN_LOCKFILE: "1"
|
||||
CI: true
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.RN_SENTRY_AUTH_TOKEN }}
|
||||
# Optional: Upload artifact
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Checkout LFS objects
|
||||
run: git lfs checkout
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js LTS
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js LTS
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js LTS
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Checkout LFS objects
|
||||
run: git lfs checkout
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
name: 📡 Publish OTA Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_version:
|
||||
type: string
|
||||
required: true
|
||||
description: "Release version without the v prefix"
|
||||
runtime_version:
|
||||
type: string
|
||||
required: true
|
||||
description: "Expo runtime version for the OTA bundle"
|
||||
channel:
|
||||
type: choice
|
||||
required: true
|
||||
options:
|
||||
- production
|
||||
- preview
|
||||
description: "OTA channel embedded in ota-release.json"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
if: github.secret_source != 'None'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
OTA_PRODUCT: mobile
|
||||
OTA_RELEASE_VERSION: ${{ inputs.release_version }}
|
||||
OTA_RUNTIME_VERSION: ${{ inputs.runtime_version }}
|
||||
OTA_CHANNEL: ${{ inputs.channel }}
|
||||
OTA_GIT_TAG: mobile/v${{ inputs.release_version }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Resolve target release tag
|
||||
run: |
|
||||
git fetch --tags --force
|
||||
|
||||
if ! git rev-parse --verify "refs/tags/${OTA_GIT_TAG}" >/dev/null 2>&1; then
|
||||
echo "::error::Required release tag ${OTA_GIT_TAG} does not exist. Create it before publishing OTA assets."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git checkout --detach "refs/tags/${OTA_GIT_TAG}"
|
||||
echo "Checked out ${OTA_GIT_TAG} at $(git rev-list -n 1 "refs/tags/${OTA_GIT_TAG}")"
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Export OTA bundle assets
|
||||
working-directory: apps/mobile
|
||||
run: pnpm run update:export
|
||||
|
||||
- name: Build OTA release bundle
|
||||
run: node .github/scripts/build-ota-release.mjs
|
||||
|
||||
- name: Publish GitHub release assets
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag_name="mobile/v${OTA_RELEASE_VERSION}"
|
||||
release_title="Mobile v${OTA_RELEASE_VERSION}"
|
||||
ota_files=("apps/mobile/dist/ota-release.json")
|
||||
|
||||
if [ -f "apps/mobile/dist.tar.zst" ]; then
|
||||
ota_files+=("apps/mobile/dist.tar.zst")
|
||||
fi
|
||||
|
||||
if gh release view "$tag_name" >/dev/null 2>&1; then
|
||||
gh release upload "$tag_name" "${ota_files[@]}" --clobber
|
||||
else
|
||||
gh release create "$tag_name" "${ota_files[@]}" \
|
||||
--verify-tag \
|
||||
--title "$release_title" \
|
||||
--notes "OTA release assets for the ${OTA_CHANNEL} channel."
|
||||
fi
|
||||
|
||||
- name: Trigger OTA sync
|
||||
env:
|
||||
OTA_BASE_URL: ${{ secrets.OTA_BASE_URL }}
|
||||
OTA_SYNC_TOKEN: ${{ secrets.OTA_SYNC_TOKEN }}
|
||||
OTA_SYNC_TOKEN_HEADER: ${{ secrets.OTA_SYNC_TOKEN_HEADER }}
|
||||
run: node .github/scripts/trigger-ota-sync.mjs
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- name: Prepare prompt variables
|
||||
id: prepare_input
|
||||
uses: actions/github-script@v8
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const issue = context.payload.issue || {};
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Prepare comment body
|
||||
id: prepare
|
||||
uses: actions/github-script@v8
|
||||
uses: actions/github-script@v9
|
||||
env:
|
||||
AI_RESPONSE: ${{ steps.inference.outputs.response }}
|
||||
with:
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
|
||||
- name: Comment similar issues
|
||||
if: steps.prepare.outputs.has_matches == 'true'
|
||||
uses: actions/github-script@v8
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const body = ${{ toJson(steps.prepare.outputs.comment_body) }};
|
||||
|
||||
+29
-15
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
sync-to-dev:
|
||||
@@ -16,20 +17,33 @@ jobs:
|
||||
(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message || '', 'release(desktop):')) ||
|
||||
(github.ref == 'refs/heads/mobile-main' && contains(github.event.head_commit.message || '', 'release(mobile):'))
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Git
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Merge source branch into dev
|
||||
- name: Create or update sync pull request
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
source_branch="${GITHUB_REF_NAME}"
|
||||
git fetch origin main mobile-main dev
|
||||
git checkout dev
|
||||
git merge --no-ff "origin/${source_branch}" -m "chore(sync): merge ${source_branch} into dev"
|
||||
git push origin dev
|
||||
title="chore(sync): merge ${source_branch} into dev"
|
||||
body=$(cat <<EOF
|
||||
This pull request was created automatically after a release branch update.
|
||||
|
||||
- Source branch: \`${source_branch}\`
|
||||
- Target branch: \`dev\`
|
||||
EOF
|
||||
)
|
||||
|
||||
pr_number="$(gh pr list --base dev --head "${source_branch}" --state open --json number --jq '.[0].number')"
|
||||
|
||||
if [ -z "${pr_number}" ]; then
|
||||
pr_url="$(gh pr create --base dev --head "${source_branch}" --title "${title}" --body "${body}")"
|
||||
pr_number="$(gh pr view "${pr_url}" --json number --jq '.number')"
|
||||
echo "Created sync PR: ${pr_url}"
|
||||
else
|
||||
gh pr edit "${pr_number}" --title "${title}" --body "${body}"
|
||||
echo "Updated existing sync PR: #${pr_number}"
|
||||
fi
|
||||
|
||||
if gh pr merge "${pr_number}" --auto --merge; then
|
||||
echo "Enabled auto-merge for sync PR #${pr_number}"
|
||||
else
|
||||
echo "Could not enable auto-merge for sync PR #${pr_number}. Merge it manually after required checks pass."
|
||||
fi
|
||||
|
||||
+50
-11
@@ -73,6 +73,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main'
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Resolve Mobile Release Config
|
||||
id: release_mode
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main'
|
||||
env:
|
||||
RELEASE_VERSION: ${{ needs.create_tag.outputs.version }}
|
||||
RELEASE_CONFIG_PATH: apps/mobile/release.json
|
||||
run: node .github/scripts/resolve-mobile-release-config.mjs
|
||||
|
||||
- name: Checkout repository
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main'
|
||||
uses: actions/checkout@v6
|
||||
@@ -86,8 +98,16 @@ jobs:
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Resolve desktop build version
|
||||
id: desktop_build_version
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main'
|
||||
id: desktop_release_mode
|
||||
env:
|
||||
RELEASE_VERSION: ${{ needs.create_tag.outputs.version }}
|
||||
RELEASE_CONFIG_PATH: apps/desktop/release.json
|
||||
run: node .github/scripts/resolve-desktop-release-config.mjs
|
||||
|
||||
- name: Resolve desktop build version
|
||||
id: desktop_build_version
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main' && steps.desktop_release_mode.outputs.triggerStoreBuilds == 'true'
|
||||
run: |
|
||||
git fetch --tags --force
|
||||
latest_tag="$(git tag -l 'desktop-build/v*' --sort=-v:refname | head -n 1)"
|
||||
@@ -111,8 +131,8 @@ jobs:
|
||||
echo "Desktop build version: ${next_build}"
|
||||
|
||||
- name: Trigger Desktop Tag Version Build
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main'
|
||||
uses: actions/github-script@v8
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main' && steps.desktop_release_mode.outputs.triggerDirectBuild == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -129,8 +149,8 @@ jobs:
|
||||
console.log('Desktop Tag Version build triggered successfully');
|
||||
|
||||
- name: Trigger Desktop Store Build
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main'
|
||||
uses: actions/github-script@v8
|
||||
if: needs.create_tag.outputs.platform == 'desktop' && needs.create_tag.outputs.ref_name == 'main' && steps.desktop_release_mode.outputs.triggerStoreBuilds == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -148,8 +168,8 @@ jobs:
|
||||
console.log('Desktop store build triggered successfully');
|
||||
|
||||
- name: Trigger Mobile Preview Release Build
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main'
|
||||
uses: actions/github-script@v8
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main' && steps.release_mode.outputs.trigger_store_builds == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -166,8 +186,8 @@ jobs:
|
||||
console.log('Mobile preview release build triggered successfully');
|
||||
|
||||
- name: Trigger Mobile Production Android Build
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main'
|
||||
uses: actions/github-script@v8
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main' && steps.release_mode.outputs.trigger_store_builds == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -184,8 +204,8 @@ jobs:
|
||||
console.log('Mobile production Android build triggered successfully');
|
||||
|
||||
- name: Trigger Mobile Production iOS Build
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main'
|
||||
uses: actions/github-script@v8
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main' && steps.release_mode.outputs.trigger_store_builds == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -199,3 +219,22 @@ jobs:
|
||||
}
|
||||
});
|
||||
console.log('Mobile production iOS build triggered successfully');
|
||||
|
||||
- name: Trigger Mobile OTA Publish
|
||||
if: needs.create_tag.outputs.platform == 'mobile' && needs.create_tag.outputs.ref_name == 'mobile-main' && steps.release_mode.outputs.trigger_ota_publish == 'true'
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
await github.rest.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: 'publish-ota.yml',
|
||||
ref: '${{ needs.create_tag.outputs.tag_version }}',
|
||||
inputs: {
|
||||
release_version: '${{ steps.release_mode.outputs.release_version }}',
|
||||
runtime_version: '${{ steps.release_mode.outputs.runtime_version }}',
|
||||
channel: '${{ steps.release_mode.outputs.channel }}'
|
||||
}
|
||||
});
|
||||
console.log('Mobile OTA publish workflow triggered successfully');
|
||||
|
||||
Reference in New Issue
Block a user