-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,103 changed files
with
122,279 additions
and
52,928 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[*.{kt,kts}] | ||
indent_size=2 |
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,53 @@ | ||
name: build-and-push-link-aws | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} | ||
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} | ||
PASSWORD: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_PASSWORD }} | ||
IMAGE_NAME: bskylink | ||
|
||
jobs: | ||
link-container-aws: | ||
if: github.repository == 'bluesky-social/social-app' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Log into registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ env.USERNAME}} | ||
password: ${{ env.PASSWORD }} | ||
|
||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=sha,enable=true,priority=100,prefix=,suffix=,format=long | ||
- name: Build and push Docker image | ||
id: build-and-push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
file: ./Dockerfile.bskylink | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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,53 @@ | ||
name: build-and-push-ogcard-aws | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} | ||
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} | ||
PASSWORD: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_PASSWORD }} | ||
IMAGE_NAME: bskyogcard | ||
|
||
jobs: | ||
ogcard-container-aws: | ||
if: github.repository == 'bluesky-social/social-app' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Log into registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ env.USERNAME}} | ||
password: ${{ env.PASSWORD }} | ||
|
||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=sha,enable=true,priority=100,prefix=,suffix=,format=long | ||
- name: Build and push Docker image | ||
id: build-and-push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
file: ./Dockerfile.bskyogcard | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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 |
---|---|---|
|
@@ -34,6 +34,9 @@ jobs: | |
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: 🪛 Setup jq | ||
uses: dcarbone/install-jq-action@v2 | ||
|
||
- name: 🔨 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
|
@@ -96,13 +99,17 @@ jobs: | |
name: build-${{ steps.timestamp.outputs.time }}.apk | ||
path: build.apk | ||
|
||
- name: 📚 Get version from package.json | ||
id: get-build-info | ||
run: bash scripts/setGitHubOutput.sh | ||
|
||
- 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 }}" | ||
"text": "Android production build for Google Play Store submission is ready!\n```Artifact: ${{ steps.upload-artifact-production.outputs.artifact-url }}\nVersion Number: ${{ steps.get-build-info.outputs.PACKAGE_VERSION }}\nBuild Number: ${{ steps.get-build-info.outputs.BSKY_ANDROID_VERSION_CODE }}```" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
|
@@ -119,3 +126,41 @@ jobs: | |
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: 🏗️ Build Production APK | ||
if: ${{ inputs.profile == 'production' }} | ||
run: yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive | ||
|
||
- name: 🚀 Upload Production APK Artifact | ||
id: upload-artifact-production-apk | ||
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 APK Build | ||
if: ${{ inputs.profile == 'production' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "Android production build for GitHub/Obtanium is ready!\n```Artifact: ${{ steps.upload-artifact-production-apk.outputs.artifact-url }}\nVersion Number: ${{ steps.get-build-info.outputs.PACKAGE_VERSION }}\nBuild Number: ${{ steps.get-build-info.outputs.BSKY_ANDROID_VERSION_CODE }}```" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: ⬇️ Restore Cache | ||
id: get-base-commit | ||
uses: actions/cache@v4 | ||
if: ${{ inputs.profile == 'testflight' }} | ||
with: | ||
path: most-recent-testflight-commit.txt | ||
key: most-recent-testflight-commit | ||
|
||
- name: ✏️ Write commit hash to cache | ||
if: ${{ inputs.profile == 'testflight' }} | ||
run: echo ${{ github.sha }} > most-recent-testflight-commit.txt |
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 |
---|---|---|
|
@@ -34,6 +34,9 @@ jobs: | |
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: 🪛 Setup jq | ||
uses: dcarbone/install-jq-action@v2 | ||
|
||
- name: 🔨 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
|
@@ -47,6 +50,10 @@ jobs: | |
- name: ⚙️ Install dependencies | ||
run: yarn install | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '15.3' | ||
|
||
- name: ☕️ Setup Cocoapods | ||
uses: maxim-lobanov/setup-cocoapods@v1 | ||
with: | ||
|
@@ -76,3 +83,31 @@ jobs: | |
|
||
- name: 🚀 Deploy | ||
run: eas submit -p ios --non-interactive --path build.ipa | ||
|
||
- name: 📚 Get version from package.json | ||
id: get-build-info | ||
run: bash scripts/setGitHubOutput.sh | ||
|
||
- name: 🔔 Notify Slack of Production Build | ||
if: ${{ inputs.profile == 'production' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "iOS production build for App Store submission is ready!\n```Artifact: Check TestFlight to know when it is available\nVersion Number: ${{ steps.get-build-info.outputs.PACKAGE_VERSION }}\nBuild Number: ${{ steps.get-build-info.outputs.BSKY_IOS_BUILD_NUMBER }}```" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: ⬇️ Restore Cache | ||
id: get-base-commit | ||
uses: actions/cache@v4 | ||
if: ${{ inputs.profile == 'testflight' }} | ||
with: | ||
path: most-recent-testflight-commit.txt | ||
key: most-recent-testflight-commit | ||
|
||
- name: ✏️ Write commit hash to cache | ||
if: ${{ inputs.profile == 'testflight' }} | ||
run: echo ${{ github.sha }} > most-recent-testflight-commit.txt |
Oops, something went wrong.