Skip to content

Conversation

@Friedinger
Copy link
Member

This pull request consolidates multiple GitHub Actions workflows into a single unified workflow, streamlining the CI/CD process. The new workflow, test-build-release.yml, replaces the previous workflows for testing, building, and releasing the application while maintaining all their functionalities. Key changes include combining testing and build steps, dynamic handling of build configurations, and improved artifact management.

Consolidation of workflows:

  • Removed redundant workflows: The workflows build.yml, request-build.yml, and test.yml were deleted as their functionalities have been integrated into the new test-build-release.yml workflow. ([[1]](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721L1-L93), [[2]](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-fe4194bd0593742314ba0f6296f3906a730fc22d986950e3f393a1f7b9871399L1-L97), [[3]](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88L1-L43))

Introduction of a unified workflow:

  • New test-build-release.yml workflow: Introduced a single workflow that handles testing, building, and releasing the application. It includes steps for formatting, analyzing, running tests, building APKs and app bundles, and managing artifacts. ([.github/workflows/test-build-release.ymlR1-R168](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-612b63199ed131209fb2aaed52e21f4112e794dbd4d750fdf52aaff72ac9ca7eR1-R168))

Improvements in build configuration:

  • Dynamic build options: The new workflow dynamically determines the build flavor (staging or production) and version name based on the Git reference (branch or tag). This eliminates hardcoded configurations and ensures flexibility. ([.github/workflows/test-build-release.ymlR1-R168](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-612b63199ed131209fb2aaed52e21f4112e794dbd4d750fdf52aaff72ac9ca7eR1-R168))

Enhanced artifact management:

  • Artifact upload and release: APK and app bundle artifacts are uploaded during the build process and conditionally released when a tag is pushed. This ensures proper handling of artifacts for both staging and production builds. ([.github/workflows/test-build-release.ymlR1-R168](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-612b63199ed131209fb2aaed52e21f4112e794dbd4d750fdf52aaff72ac9ca7eR1-R168))

Label management for pull requests:

  • Automated label removal: The workflow automatically removes the "⚗️ Request Build" label from pull requests after the build is completed, improving automation and reducing manual intervention. ([.github/workflows/test-build-release.ymlR1-R168](https://github.com/RubberDuckCrew/gitdone/pull/97/files#diff-612b63199ed131209fb2aaed52e21f4112e794dbd4d750fdf52aaff72ac9ca7eR1-R168))

- Merge test and build workflows
- Merge release build and request build
@Friedinger Friedinger added ♻️ Refactor Code improvements without changing function ⚗️ Request Build Requests a build of the project labels May 23, 2025
@Friedinger Friedinger added ⚗️ Request Build Requests a build of the project and removed ⚗️ Request Build Requests a build of the project labels May 23, 2025
@github-actions github-actions bot removed the ⚗️ Request Build Requests a build of the project label May 23, 2025
@IamPekka058 IamPekka058 added the ⚗️ Request Build Requests a build of the project label May 23, 2025
@github-actions github-actions bot removed the ⚗️ Request Build Requests a build of the project label May 23, 2025
@github-actions
Copy link

📦 Build Artifacts

@Friedinger Friedinger merged commit 6c64942 into main May 23, 2025
12 checks passed
@Friedinger Friedinger deleted the ci/build-refactor branch May 23, 2025 13:46
IamPekka058 pushed a commit that referenced this pull request Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor Code improvements without changing function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants