Skip to content

Commit 0478aba

Browse files
ignoramousCopilot
andauthored
gh-actions: upload firestack debug symbols from maven central (#2387)
Co-authored-by: Copilot <[email protected]>
1 parent 01d8533 commit 0478aba

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/sym.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ on:
1111
# github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
1212
# docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
1313
inputs:
14+
repo:
15+
description: 'repo'
16+
default: 'maven'
17+
required: true
18+
type: choice
19+
options:
20+
- maven
21+
- jitpack
1422
commit:
15-
description: 'commit sha'
23+
description: 'firestack version'
1624
default: ''
1725
required: true
1826

@@ -54,14 +62,20 @@ jobs:
5462
run: |
5563
# wget opts: superuser.com/a/689340
5664
wgetopts="--tries=3 --retry-on-http-error=404 --waitretry=3 --no-dns-cache"
57-
wget $wgetopts "https://jitpack.io/com/github/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
65+
if [ "$REPO" = 'jitpack' ]; then
66+
wget $wgetopts "https://jitpack.io/com/github/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
67+
else
68+
# ex: https://repo1.maven.org/maven2/com/celzero/firestack/30c7f27122/
69+
wget $wgetopts "https://repo1.maven.org/maven2/com/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
70+
fi
5871
ls -ltr .
5972
unzip ./firestack.aar
6073
firebase crashlytics:symbols:upload --app=${{ secrets.FIREBASE_APP_ID_ANDROID }} --debug jni/
6174
shell: bash
6275
env:
6376
COMMIT: ${{ env.COMMIT }}
6477
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
78+
REPO: ${{ github.event.inputs.repo || 'maven' }}
6579

6680

6781

0 commit comments

Comments
 (0)