Share
Embed
Firebase App Distributionのテストアプリ配信を試しやすくする
2023/7/8に開催されたDroidKaigi.collect { #5@Nagoya }で登壇したLTの資料です
Yoshihiro WADA
July 08, 2023
Transcript
16 slides
-
{ “id”: “@e10dokup”, “name”: “Yoshihiro Wada”, “affiliations”: [ “CyberAgent Inc,
/ Ameba” ], “interested”: [ “camera”, “gadget”, “driving”, “motorsports” ] } -
DeployGate Firebase App Distribution Firebase App Distribution tips GitHub Actions
runs-on ubuntu-latest 3 -
wzieba/Firebase-Distribution-GitHub-Action(*1) App Tester 5 *1:https://github.com/wzieba/Firebase-Distribution-Github-Action - name: upload artifact
to Firebase App Distribution uses: wzieba/Firebase-Distribution-Github-Action@v1 with: appId: ${{secrets.FIREBASE_APP_ID}} serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} groups: testers file: app/build/outputs/apk/release/app-release-unsigned.apk releaseNotes: ϝονϟΠέςϧϦϦʔεϊʔτ -
Docker fi le fi rebase-tools Firebase CLI wzieba/Firebase-Distribution-GitHub-Action 8
i uploading binary... ✔ uploaded new release <version_name> (<version_code>) successfully! ✔ View this release in the Firebase console: <ίϯιʔϧURL> ✔ Share this release with testers who have access: <ςελʔ༻URL> ✔ Download the release binary (link expires in 1 hour): <όΠφϦμϯϩʔυURL> i updating release notes... ✔ added release notes successfully i distributing to testers/groups... ✔ distributed to testers/groups successfully -
URL Firebase App Distribution URL Firebase App Distribution URL Firebase
App Tester Deep Link URL APK/AAB URL 1 URL 3 9 -
URL Firebase App Distribution URL Firebase App Distribution URL Firebase
App Tester Deep Link URL APK/AAB URL 1 URL 3 10 -
actions.yml outputs key-value tester_url Action 12 outputs: tester_url: description: ‘Url
for Firebase App Tester’ -
entrypoints.sh outputs grep 2 URL URL $GITHUB_OUTPUT key-value URL 13
output=$(firebase \ /** தུ **/ $( (( $INPUT_DEBUG )) && printf %s '--debug' )) # firebaseίϚϯυͷ݁ՌΛมʹऔΔ status=$? echo $output if [ -n "${INPUT_TOKEN}" ] ; then echo ${TOKEN_DEPRECATED_WARNING_MESSAGE} fi tester_url=$(echo $output | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sed -n 2p ) echo "tester_url=$tester_url" >> $GITHUB_OUTPUT # ͜ͷܗࣜͰecho͢ΔͱActionͷग़ྗͱͯ͠ೝࣝ͞ΕΔ exit $status -
GitHub Repository marketplace •<user/org name>/<action name>@<ref> ref outputs Action
ID •steps.<ActionͷID>.outputs.<ม໊> Action 14 -
PR api.qrserver.com QR URL 15 - name: upload artifact
to Firebase App Distribution id: upload_fad # ͜͜ͷΛͬͯࢀর͢Δ uses: <user>/Firebase-Distribution-Github-Action@master with: appId: ${{secrets.FIREBASE_APP_ID}} serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} groups: testers file: app/build/outputs/apk/release/app-release.apk releaseNotes: ϝονϟΠέςϧϦϦʔεϊʔτ - name: Comment to PullRequest if: success() uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ github.event.pull_request.number }} body: | Upload application is succeeded. check ${{ steps.upload_fad.outputs.tester_url }}.