diff --git a/.github/workflows/sym.yml b/.github/workflows/sym.yml new file mode 100644 index 000000000..6e09c5104 --- /dev/null +++ b/.github/workflows/sym.yml @@ -0,0 +1,53 @@ +name: ⚛️ Native Sym + +on: + push: + tags: + - "v*" + # docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow + # docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch + # docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onworkflow_dispatchinputs + workflow_dispatch: + # github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ + # docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs + inputs: + commit: + description: 'commit sha' + default: '' + required: true + +jobs: + # from: github.com/Menci/acme/blob/5a12d53/action.yml + Symbols: + name: 🔥 Firebase + runs-on: ubuntu-latest + + env: + COMMIT: ${{ github.event.inputs.commit || github.sha }} + + steps: + - name: 🥏 Checkout + uses: actions/checkout@v4 + + - name: 🎱 Setup node + uses: actions/setup-node@v4 + with: + node-version: 21 + + - name: 🎨 Deps + run: npm install -g firebase-tools + + - name: 🚀 Firestack AAR + run: | + # wget opts: superuser.com/a/689340 + wgetopts="--tries=3 --retry-on-http-error=404 --waitretry=3 --no-dns-cache" + wget $wgetopts "https://jitpack.com/com/github/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar" + unzip firestack.aar + firebase crashlytics:symbols:upload --app=${{ secrets.FIREBASE_APP_ID_ANDROID }} ./jni/ + shell: bash + env: + COMMIT: ${{ env.COMMIT }} + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + + +