Skip to content

Commit d39726a

Browse files
committed
gh-actions: firebase sym upload as sep job in publisher
1 parent 2fcfd6a commit d39726a

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
SBOM_PREDICATE: "https://spdx.dev/Document/v2.2"
7070
# debug symbols zip produced by the debugsymbols Make target; bundled with AAR artifact
7171
FOUTSYM: firestack-debug-symbols.zip
72+
# also see env vars for "firebase" job below
7273
ARCHS: armeabi-v7a arm64-v8a x86 x86_64
7374

7475
permissions:
@@ -77,6 +78,10 @@ jobs:
7778
attestations: read
7879
packages: write
7980

81+
outputs:
82+
vcsver: ${{ steps.runmeta.outputs.vcsver }}
83+
run_id: ${{ steps.runmeta.outputs.run_id }}
84+
8085
steps:
8186
- name: 🥏 Checkout
8287
uses: actions/checkout@v6
@@ -322,6 +327,32 @@ jobs:
322327
curl -D - -X POST -H "Authorization: Bearer ${tok}" \
323328
"https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/${GROUP_OSSRH}?publishing_type=automatic"
324329
330+
firebase:
331+
name: 🔥 Firebase Symbols
332+
needs: publish
333+
runs-on: ubuntu-latest
334+
continue-on-error: true
335+
env:
336+
FOUT: firestack.aar
337+
FOUTSYM: firestack-debug-symbols.zip
338+
ARCHS: armeabi-v7a arm64-v8a x86 x86_64
339+
DIST_DIR: dist
340+
ARTIFACT_PATTERN: "firestack-aar-*"
341+
342+
permissions:
343+
contents: read
344+
actions: read
345+
346+
steps:
347+
- name: ⬇️ Download artifacts
348+
uses: actions/download-artifact@v7
349+
with:
350+
pattern: ${{ env.ARTIFACT_PATTERN }}
351+
run-id: ${{ needs.publish.outputs.run_id }}
352+
github-token: ${{ github.token }}
353+
path: ${{ env.DIST_DIR }}
354+
merge-multiple: true
355+
325356
# github.com/celzero/rethink-app/blob/main/.github/workflows/sym.yml
326357
# firebase.google.com/docs/crashlytics/android/get-started-ndk
327358
- name: 🔥 Upload symbols to Firebase
@@ -331,7 +362,7 @@ jobs:
331362
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
332363
# comma-separated list of Firebase app IDs (alpha, debug, prod)
333364
FIREBASE_APP_IDS: ${{ secrets.FIREBASE_ALPHA_DEBUG_PROD_APP_ID_CSV }}
334-
VCSVER: ${{ steps.runmeta.outputs.vcsver }}
365+
VCSVER: ${{ needs.publish.outputs.vcsver }}
335366
run: |
336367
set -euo pipefail
337368
echo "::notice::Uploading NDK debug symbols for ${VCSVER} to Firebase Crashlytics"

0 commit comments

Comments
 (0)