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
on:
push:
branches:
- hailey/android-apk-production
workflow_dispatch:
inputs:
profile:
@@ -63,12 +66,12 @@ jobs:
echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .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: 🏗️ 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
@@ -76,57 +79,57 @@ jobs:
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 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: 🚀 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/slack-github-action@v1.25.0
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/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: 🔔 Notify Slack of Production Build
# if: ${{ inputs.profile == 'production' }}
# uses: slackapi/slack-github-action@v1.25.0
# 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/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
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
- name: 🚀 Upload Production APK Artifact
id: upload-artifact-production-apk
if: ${{ inputs.profile == 'production' }}
# if: ${{ inputs.profile == 'production' }}
uses: actions/upload-artifact@v4
with:
retention-days: 30
@@ -135,7 +138,7 @@ jobs:
path: build.apk
- name: 🔔 Notify Slack of Production APK Build
if: ${{ inputs.profile == 'production' }}
# if: ${{ inputs.profile == 'production' }}
uses: slackapi/slack-github-action@v1.25.0
with:
payload: |
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "bsky.app",
"version": "1.85.0",
"version": "1.84.0",
"private": true,
"engines": {
"node": ">=18"