2023/7/8に開催されたDroidKaigi.collect { #5@Nagoya }で登壇したLTの資料です
Firebase App DistributionYoshihiro Wada / @e10dokup2023/07/08 @ DroidKaigi.collect { #5@Nagoya }
View Slide
{“id”: “@e10dokup”,“name”: “Yoshihiro Wada”,“affiliations”: [“CyberAgent Inc, / Ameba”],“interested”: [“camera”, “gadget”, “driving”, “motorsports”]}
DeployGateFirebase App DistributionFirebase App DistributiontipsGitHub Actionsruns-on ubuntu-latest3
GitHub Actions+Firebase App Distribution
wzieba/Firebase-Distribution-GitHub-Action(*1)App Tester5*1:https://github.com/wzieba/Firebase-Distribution-Github-Action- name: upload artifact to Firebase App Distributionuses: wzieba/Firebase-Distribution-Github-Action@v1with:appId: ${{secrets.FIREBASE_APP_ID}}serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}groups: testersfile: app/build/outputs/apk/release/app-release-unsigned.apkreleaseNotes: ϝονϟΠέςϧϦϦʔεϊʔτ
DeployGate #App Tester6
Dockerfilefirebase-toolsFirebase CLIwzieba/Firebase-Distribution-GitHub-Action8i uploading binary...✔ uploaded new release () 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
URLFirebase App DistributionURLFirebase App Distribution URLFirebase App Tester Deep LinkURLAPK/AAB URL1URL 39
URLFirebase App DistributionURLFirebase App Distribution URLFirebase App Tester Deep LinkURLAPK/AAB URL1URL 310
wzieba/Firebase-Distribution-GitHub-ActionURLForkActionURLActionURLURL11
actions.ymloutputs key-valuetester_urlAction12outputs:tester_url:description: ‘Url for Firebase App Tester’
entrypoints.shoutputs grep 2 URL URL$GITHUB_OUTPUT key-valueURL13output=$(firebase \/** தུ **/$( (( $INPUT_DEBUG )) && printf %s '--debug' )) # firebaseίϚϯυͷ݁ՌΛมʹऔΔstatus=$?echo $outputif [ -n "${INPUT_TOKEN}" ] ; thenecho ${TOKEN_DEPRECATED_WARNING_MESSAGE}fitester_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 •/@refoutputs Action ID•steps..outputs.<ม໊>Action14
PRapi.qrserver.com QRURL15- name: upload artifact to Firebase App Distributionid: upload_fad # ͜͜ͷΛͬͯࢀর͢Δuses: /Firebase-Distribution-Github-Action@masterwith:appId: ${{secrets.FIREBASE_APP_ID}}serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}groups: testersfile: app/build/outputs/apk/release/app-release.apkreleaseNotes: ϝονϟΠέςϧϦϦʔεϊʔτ- name: Comment to PullRequestif: success()uses: peter-evans/create-or-update-comment@v2with:issue-number: ${{ github.event.pull_request.number }}body: |Upload application is succeeded.check ${{ steps.upload_fad.outputs.tester_url }}.
firebase-toolsfirebase-toolsFastlaneFirebase API FastlaneURLFirebase API16