-
Notifications
You must be signed in to change notification settings - Fork 3
Update workflows to 2.0.0 #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Nightly build | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * 2-6" # https://crontab.guru/#0_0_*_*_2-6 | ||
| workflow_dispatch: | ||
| inputs: | ||
| version_name: | ||
| description: 'Version name (Android)' | ||
| required: true | ||
| type: string | ||
| default: '1.x.x-snapshot' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| generate_version: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| version_name: ${{ steps.version.outputs.version_name }} | ||
| steps: | ||
| - name: Generate version name with timestamp | ||
| id: version | ||
| run: | | ||
| if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then | ||
| VERSION_NAME="${{ inputs.version_name }}" | ||
| echo "[DEBUG] Using manual input version name: $VERSION_NAME" | ||
| else | ||
| VERSION_NAME="nightly-${{ github.run_id }}" | ||
| echo "[DEBUG] Generated automatic version name: $VERSION_NAME" | ||
| fi | ||
| echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT | ||
| nightly_build: | ||
| needs: generate_version | ||
| uses: futuredapp/.github/.github/workflows/[email protected] | ||
| with: | ||
| # `testReleaseUnitTest` covers androidApp module and all shared modules all at once. No need to call `testEnterpriseUnitTest` and `testReleaseUnitTest`. | ||
| ANDROID_TEST_GRADLE_TASK: testReleaseUnitTest | ||
| ANDROID_PACKAGE_GRADLE_TASK: packageEnterpriseUniversalApk | ||
| ANDROID_UPLOAD_GRADLE_TASK: appDistributionUploadEnterprise | ||
| ANDROID_VERSION_NAME: ${{ needs.generate_version.outputs.version_name }} | ||
| # TODO PROJECT-SETUP verify product flavor configuration | ||
| # Specifies API environment for KMP build. | ||
| # One of [dev|prod] as per configuration of Buildkonfig plugin in :shared:network:* Gradle module. | ||
| KMP_FLAVOR: 'dev' | ||
| KMP_SWIFT_PACKAGE_INTEGRATION: true | ||
| KMP_SWIFT_PACKAGE_PATH: 'iosApp/shared/KMP' | ||
| # TODO PROJECT-SETUP Verify app distribution groups | ||
| FIREBASE_APP_DISTRIBUTION_GROUPS: futured-devs, futured-qa | ||
| CHANGELOG_DEBUG: true | ||
| CHANGELOG_CHECKOUT_DEPTH: 100 | ||
| CHANGELOG_FALLBACK_LOOKBACK: "2 weeks" | ||
| secrets: | ||
| FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT: ${{ secrets.APP_DISTRIBUTION_SERVICE_ACCOUNT }} | ||
| # TODO PROJECT-SETUP create random secure string in repository secrets, or leave out to disable configuration cache | ||
| GRADLE_CACHE_ENCRYPTION_KEY: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} | ||
| IOS_MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
| IOS_APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} | ||
| IOS_APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} | ||
| IOS_APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fail‑fast on missing signing env and support SIGNING_ fallback to match CI.*
Empty strings defer errors to signing time. Resolve early and align with workflow secrets.
Optionally drive the keystore path from env to avoid committing it:
📝 Committable suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Falling back to error if null causes crash during Gradle Sync = during configuration phase the entire script is evaluated, so we need to provide meaningful default value even if not building release type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matejsemancik, you're absolutely right—I overlooked the Gradle configuration phase behavior. Since the entire script is evaluated during sync regardless of the build type, using
error()would indeed break the developer experience for anyone running a simple Gradle sync or building debug variants without release signing credentials.The current
.orEmpty()approach is the appropriate solution here. It allows configuration to succeed while deferring validation to the actual signing phase, where missing credentials will naturally fail if someone attempts a release build. This strikes the right balance between validation and usability.Thanks for the clarification!
✏️ Learnings added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, rookie mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matejsemancik, appreciate the understanding! Always learning. 😊
🧠 Learnings used