From ae010a0e2119decc00713fa114ab232e4f583cc1 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Mon, 9 Jun 2025 09:15:36 +0200 Subject: [PATCH] Update build and deploy workflows to support branch-specific builds and Java setup --- .gitea/workflows/build.yml | 5 ++++- .gitea/workflows/deploy.yml | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e168bbf..1af409f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,5 +1,8 @@ name: Build -on: [push] +on: + push: + branches: + - '*' jobs: build: runs-on: standard-latest diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9132943..032a698 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,6 +10,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '21' + cache: 'gradle' + - name: Login with: # Set the secret as an input package_rw: ${{ secrets.PACKAGE_RW }}