Defold build workflow for Android & iOS.
Steps:
- Builds and signs apps (
.ipa
,.apk
) using Bob - Generate download links from a mobile device using Diawi
- Send generated links to Slack channel
Copy the GitHub workflow file .github/workflows/defold-build.yml into our project
Set the required secret variables for GitHub Actions.
(Section with secrets: GitHub Repository / Settings / Secrets)
Secret | Description |
---|---|
MACOS_BUILD_CERTIFICATE_BASE64 | Encrypted file content .p12 , containing Apple Developer Certificate. And encoded in base64 for correct transmission to GitHub Secret. |
MACOS_P12_PASSWORD | Password to decrypted the file .p12 |
MACOS_BUILD_PROVISION_PROFILE_BASE64 | Apple profile file content .mobileprovision (in base64) |
DIAWI_TOKEN | API-token https://dashboard.diawi.com/profile/api, which generates links to pages for installing .ipa for iOS and .apk for Android |
SLACK_WEBHOOK | URL to webhook Slack https://slack.com/apps/A0F7XDUAZ-incoming-webhooks, which message is sent to the Slack with final apps. |
Hint: command for base64 encoding and copy
$ base64 file.p12 | pbcopy