Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/enterprise.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading