diff --git a/.github/workflows/enterprise.yml b/.github/workflows/enterprise.yml deleted file mode 100644 index cc791f4..0000000 --- a/.github/workflows/enterprise.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Enterprise build - -on: - push: - branches: - - develop - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: true - -jobs: - deploy_enterprise: - name: Deploy enterprise build - uses: futuredapp/.github/.github/workflows/android-cloud-release-firebaseAppDistribution.yml@main - with: - TEST_GRADLE_TASKS: testDevEnterpriseUnitTest - BUNDLE_GRADLE_TASK: bundleDevEnterprise - UPLOAD_GRADLE_TASK: appDistributionUploadDevEnterprise - SIGNING_KEYSTORE_PATH: keystore/debug.jks - # TODO Verify app distribution groups - APP_DISTRIBUTION_GROUPS: futured-devs, futured-qa - secrets: - # TODO Set up `APP_DISTRIBUTION_SERVICE_ACCOUNT` as plaintext JSON for this GitHub repository - SIGNING_KEYSTORE_PASSWORD: android - SIGNING_KEY_ALIAS: androiddebugkey - SIGNING_KEY_PASSWORD: android - APP_DISTRIBUTION_SERVICE_ACCOUNT: ${{ secrets.APP_DISTRIBUTION_SERVICE_ACCOUNT }} - # TODO Set up `GRADLE_CACHE_ENCRYPTION_KEY` for this GitHub repository - GRADLE_CACHE_ENCRYPTION_KEY: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..6c87484 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,52 @@ +name: Nightly build + +on: + schedule: + - cron: "0 0 * * 2-6" # At 00:00 on every day-of-week from Tuesday through Saturday. + workflow_dispatch: + inputs: + version_name: + description: 'Version name' + required: true + type: string + default: '1.0.0' + +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 + android_nightly: + needs: generate_version + uses: futuredapp/.github/.github/workflows/android-cloud-nightly-build.yml@2.0.0 + with: + TEST_GRADLE_TASKS: testDevEnterpriseUnitTest + PACKAGE_GRADLE_TASK: packageDevEnterpriseUniversalApk + UPLOAD_GRADLE_TASK: appDistributionUploadDevEnterprise + # TODO Verify app distribution groups + APP_DISTRIBUTION_GROUPS: futured-devs, futured-qa + VERSION_NAME: ${{ needs.generate_version.outputs.version_name }} + CHANGELOG_DEBUG: true + CHANGELOG_CHECKOUT_DEPTH: 100 + CHANGELOG_FALLBACK_LOOKBACK: "2 weeks" + secrets: + # TODO Set up `APP_DISTRIBUTION_SERVICE_ACCOUNT` as plaintext JSON for this GitHub repository + APP_DISTRIBUTION_SERVICE_ACCOUNT: ${{ secrets.APP_DISTRIBUTION_SERVICE_ACCOUNT }} + # TODO Set up `GRADLE_CACHE_ENCRYPTION_KEY` for this GitHub repository + GRADLE_CACHE_ENCRYPTION_KEY: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9ef7eea..1f7b94f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,7 +8,7 @@ concurrency: jobs: check: - uses: futuredapp/.github/.github/workflows/android-cloud-check.yml@main + uses: futuredapp/.github/.github/workflows/android-cloud-check.yml@2.0.0 with: LINT_GRADLE_TASKS: lintCheck TEST_GRADLE_TASKS: testDevEnterpriseUnitTest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64f560c..aff4d60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,11 +11,10 @@ concurrency: jobs: deploy_release: name: Deploy release build - uses: futuredapp/.github/.github/workflows/android-cloud-release-googlePlay.yml@main + uses: futuredapp/.github/.github/workflows/android-cloud-release-googlePlay.yml@2.0.0 with: VERSION_NAME: ${{ github.event.release.tag_name }} BUNDLE_GRADLE_TASK: bundleProdRelease - SIGNING_KEYSTORE_PATH: keystore/release.jks # TODO This has to be applicationId GOOGLE_PLAY_APPLICATION_ID: app.futured.androidprojecttemplate GOOGLE_PLAY_WHATSNEW_DIRECTORY: whatsnew