diff options
author | Eric Bailey <git@esb.lol> | 2024-06-04 20:55:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 18:55:18 -0700 |
commit | deea2f383988aef51035b27b10167cebfd29f612 (patch) | |
tree | 027cf037d7c63a9a793883237035b96e99ec0e2d /.github/workflows | |
parent | 7613cdb89b4929d97219f2a5c2830a73947bb28a (diff) | |
download | voidsky-deea2f383988aef51035b27b10167cebfd29f612.tar.zst |
Clarify some things in OTA docs (#4367)
* Clarify some things * add github outputs script * add slack notify android * test slack android * fix indent * fix test * sigh... * Revert "fix test" This reverts commit c99764464f0e0d147587e3b813319b9b887a30d8. * Revert "fix indent" This reverts commit 4cce508d280c4f9e7b0ee6f9c2693fa88d2b65f4. * Revert "test slack android" This reverts commit b02419b2471e99faa5bac860276fc71b11d35b6a. * test ios workflow * remove testing * add slack info to docs * use correct output for android --------- Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build-submit-android.yml | 11 | ||||
-rw-r--r-- | .github/workflows/build-submit-ios.yml | 19 |
2 files changed, 28 insertions, 2 deletions
diff --git a/.github/workflows/build-submit-android.yml b/.github/workflows/build-submit-android.yml index ec9e0d320..6914b6362 100644 --- a/.github/workflows/build-submit-android.yml +++ b/.github/workflows/build-submit-android.yml @@ -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/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 }}" + "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 }} @@ -140,7 +147,7 @@ jobs: with: payload: | { - "text": "Android production APK build is ready for download. This is a production build, and you should add it to the GitHub release! Download the artifact here: ${{ steps.upload-artifact-production-apk.outputs.artifact-url }}" + "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 }} diff --git a/.github/workflows/build-submit-ios.yml b/.github/workflows/build-submit-ios.yml index c1693b814..284e666df 100644 --- a/.github/workflows/build-submit-ios.yml +++ b/.github/workflows/build-submit-ios.yml @@ -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: @@ -81,6 +84,22 @@ 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/slack-github-action@v1.25.0 + 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 |