test a build

This commit is contained in:
Hailey
2024-06-01 13:30:03 -07:00
parent 4a5439b8c3
commit f89bfeefb7
2 changed files with 55 additions and 52 deletions
+54 -51
View File
@@ -2,6 +2,9 @@
name: Build and Submit Android name: Build and Submit Android
on: on:
push:
branches:
- hailey/android-apk-production
workflow_dispatch: workflow_dispatch:
inputs: inputs:
profile: profile:
@@ -63,12 +66,12 @@ jobs:
echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env
echo "$json" > google-services.json echo "$json" > google-services.json
- name: 🏗️ EAS Build # - 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 # 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 # - name: ✍️ Rename Testflight bundle
if: ${{ inputs.profile != 'production' }} # if: ${{ inputs.profile != 'production' }}
run: mv build.aab build.apk # run: mv build.aab build.apk
- name: ⏰ Get a timestamp - name: ⏰ Get a timestamp
id: timestamp id: timestamp
@@ -76,57 +79,57 @@ jobs:
with: with:
format: 'MM-DD-HH-mm-ss' format: 'MM-DD-HH-mm-ss'
- name: 🚀 Upload Production Artifact # - name: 🚀 Upload Production Artifact
id: upload-artifact-production # id: upload-artifact-production
if: ${{ inputs.profile == 'production' }} # if: ${{ inputs.profile == 'production' }}
uses: actions/upload-artifact@v4 # uses: actions/upload-artifact@v4
with: # with:
retention-days: 30 # retention-days: 30
compression-level: 6 # compression-level: 6
name: build-${{ steps.timestamp.outputs.time }}.aab # name: build-${{ steps.timestamp.outputs.time }}.aab
path: build.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: 🚀 Upload Testflight Artifact # - name: 🔔 Notify Slack of Production Build
id: upload-artifact-testflight # if: ${{ inputs.profile == 'production' }}
if: ${{ inputs.profile != 'production' }} # uses: slackapi/slack-github-action@v1.25.0
uses: actions/upload-artifact@v4 # with:
with: # payload: |
retention-days: 30 # {
compression-level: 6 # "text": "Android build is ready for submission. This is a production build! Download the artifact here: ${{ steps.upload-artifact-production.outputs.artifact-url }}"
name: build-${{ steps.timestamp.outputs.time }}.apk # }
path: build.apk # env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
- name: 🔔 Notify Slack of Production Build # SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
if: ${{ inputs.profile == 'production' }} #
uses: slackapi/slack-github-action@v1.25.0 # - name: 🔔 Notify Slack of Testflight Build
with: # if: ${{ inputs.profile != 'production' }}
payload: | # uses: slackapi/slack-github-action@v1.25.0
{ # with:
"text": "Android build is ready for submission. This is a production build! Download the artifact here: ${{ steps.upload-artifact-production.outputs.artifact-url }}" # payload: |
} # {
env: # "text": "Android build is ready for testing. Download the artifact here: ${{ steps.upload-artifact-testflight.outputs.artifact-url }}"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} # }
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK # env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
- name: 🔔 Notify Slack of Testflight Build # SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
if: ${{ inputs.profile != 'production' }}
uses: slackapi/slack-github-action@v1.25.0
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
- name: 🏗️ Build Production APK - name: 🏗️ Build Production APK
if: ${{ inputs.profile == 'production' }} # if: ${{ inputs.profile == 'production' }}
run: yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive 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 - name: 🚀 Upload Production APK Artifact
id: upload-artifact-production-apk id: upload-artifact-production-apk
if: ${{ inputs.profile == 'production' }} # if: ${{ inputs.profile == 'production' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
retention-days: 30 retention-days: 30
@@ -135,7 +138,7 @@ jobs:
path: build.apk path: build.apk
- name: 🔔 Notify Slack of Production APK Build - name: 🔔 Notify Slack of Production APK Build
if: ${{ inputs.profile == 'production' }} # if: ${{ inputs.profile == 'production' }}
uses: slackapi/slack-github-action@v1.25.0 uses: slackapi/slack-github-action@v1.25.0
with: with:
payload: | payload: |
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "bsky.app", "name": "bsky.app",
"version": "1.85.0", "version": "1.84.0",
"private": true, "private": true,
"engines": { "engines": {
"node": ">=18" "node": ">=18"