Skip to content

Commit

Permalink
Create sym.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous authored Jun 1, 2024
1 parent 95b0b03 commit 628aafd
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/sym.yml
Original file line number Diff line number Diff line change
@@ -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 }}



1 comment on commit 628aafd

@ignoramous
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.