From 5071a8b4b236d16ef5fd6a59bc2d934b9787a594 Mon Sep 17 00:00:00 2001 From: Nipuna Ranasinghe Date: Wed, 29 May 2024 21:28:30 +0530 Subject: [PATCH] Improve the build workflow --- .github/workflows/{daily-build.yml => build.yml} | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename .github/workflows/{daily-build.yml => build.yml} (77%) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/build.yml similarity index 77% rename from .github/workflows/daily-build.yml rename to .github/workflows/build.yml index df8901f0..a0212bd6 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,12 @@ -name: Daily Build +name: Build on: + schedule: + - cron: '0 0 * * *' # Runs every day at midnight UTC push: branches: - master + - 2.[0-9]+.x jobs: build-and-test: @@ -11,6 +14,7 @@ jobs: concurrency: group: ${{ github.head_ref }}-ubuntu-build cancel-in-progress: true + steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -21,10 +25,5 @@ jobs: java-version: 11 distribution: 'temurin' - - name: Set up Gradle - uses: gradle/gradle-build-action@v2 - with: - arguments: assemble - - name: Build run: ./gradlew build