-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat/web-profile-hover
* origin/main: (455 commits) Use getSuggestions endpoint behind the gate (#3499) Added `new_profile_scroll_component` to `Gate` type (#3487) Fix useGate lint rule (#3486) Make bio area scrollable on iOS (#2931) Improve Android haptic, offer toggle for haptics in the app (#3482) Search - only enable queries once tab is active (#3471) [Statsig] Mark Testflight as staging tier (#3470) [Statsig] Typecheck gates (#3467) Bump to 1.77 (#3468) Search - extra tabs (#3408) notify slack on production builds (#3461) notify slack on production builds (#3460) 1.76 release preparations (#3459) Update zh-CN translation (#3433) Italian Localization (#3388) [Statsig] Send prev route name (#3456) [Statsig] Instrument feed display (#3455) Small logic cleanups (#3449) Use ALF for the embed consent modal (#3336) Onboarding tweaks (#3447) ...
- Loading branch information
Showing
592 changed files
with
87,333 additions
and
35,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
--- | ||
name: Build and Submit Android | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
profile: | ||
type: choice | ||
description: Build profile to use | ||
options: | ||
- testflight-android | ||
- production | ||
|
||
jobs: | ||
build: | ||
name: Build and Submit Android | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: > | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: ⬇️ Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔧 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: 🔨 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
expo-version: latest | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: ⛏️ Setup EAS local builds | ||
run: yarn global add eas-cli-local-build-plugin | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: ⚙️ Install dependencies | ||
run: yarn install | ||
|
||
- name: 🔤 Compile translations | ||
run: yarn intl:build | ||
|
||
- name: ✏️ Write environment variables | ||
run: | | ||
export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}' | ||
echo "${{ secrets.ENV_TOKEN }}" > .env | ||
echo "$json" > google-services.json | ||
- name: 🏗️ EAS Build | ||
run: yarn use-build-number-with-bump eas build -p android --profile ${{ inputs.profile || 'testflight-android' }} --local --output build.aab --non-interactive | ||
|
||
- name: ✍️ Rename Testflight bundle | ||
if: ${{ inputs.profile != 'production' }} | ||
run: mv build.aab build.apk | ||
|
||
- name: ⏰ Get a timestamp | ||
id: timestamp | ||
uses: nanzm/get-time-action@master | ||
with: | ||
format: 'MM-DD-HH-mm-ss' | ||
|
||
- name: 🚀 Upload Production Artifact | ||
id: upload-artifact-production | ||
if: ${{ inputs.profile == 'production' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
retention-days: 30 | ||
compression-level: 6 | ||
name: build-${{ steps.timestamp.outputs.time }}.aab | ||
path: build.aab | ||
|
||
- name: 🚀 Upload Testflight Artifact | ||
id: upload-artifact-testflight | ||
if: ${{ inputs.profile != 'production' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
retention-days: 30 | ||
compression-level: 6 | ||
name: build-${{ steps.timestamp.outputs.time }}.apk | ||
path: build.apk | ||
|
||
- name: 🔔 Notify Slack of Production Build | ||
if: ${{ inputs.profile == 'production' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "Android build is ready for submission. This is a production build! Download the artifact here: ${{ steps.upload-artifact-production.outputs.artifact-url }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: 🔔 Notify Slack of Testflight Build | ||
if: ${{ inputs.profile != 'production' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "Android build is ready for testing. Download the artifact here: ${{ steps.upload-artifact-testflight.outputs.artifact-url }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
name: Build and Submit iOS | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
profile: | ||
type: choice | ||
description: Build profile to use | ||
options: | ||
- testflight | ||
- production | ||
|
||
jobs: | ||
build: | ||
name: Build and Submit iOS | ||
runs-on: macos-14 | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: > | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: ⬇️ Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔧 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: 🔨 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
expo-version: latest | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: ⛏️ Setup EAS local builds | ||
run: yarn global add eas-cli-local-build-plugin | ||
|
||
- name: ⚙️ Install dependencies | ||
run: yarn install | ||
|
||
- name: ☕️ Setup Cocoapods | ||
uses: maxim-lobanov/setup-cocoapods@v1 | ||
with: | ||
version: 1.14.3 | ||
|
||
- name: 💾 Cache Pods | ||
uses: actions/cache@v3 | ||
id: pods-cache | ||
with: | ||
path: ./ios/Pods | ||
# We'll use the yarn.lock for our hash since we don't yet have a Podfile.lock. Pod versions will not | ||
# change unless the yarn version changes as well. | ||
key: ${{ runner.os }}-pods-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: 🔤 Compile translations | ||
run: yarn intl:build | ||
|
||
- name: ✏️ Write environment variables | ||
run: | | ||
echo "${{ secrets.ENV_TOKEN }}" > .env | ||
echo "${{ secrets.GOOGLE_SERVICES_TOKEN }}" > google-services.json | ||
- name: 🏗️ EAS Build | ||
run: yarn use-build-number-with-bump eas build -p ios --profile ${{ inputs.profile || 'testflight' }} --local --output build.ipa --non-interactive | ||
|
||
- name: 🚀 Deploy | ||
run: eas submit -p ios --non-interactive --path build.ipa |
Oops, something went wrong.