name: Backend Build on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # Allows you to reuse workflows by referencing their YAML files workflow_call: jobs: build-backend: name: Backend runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "17" cache: maven - uses: stCarolas/setup-maven@v5 with: maven-version: 3.9.0 - name: Give permissions run: | sudo chmod 777 ../ shell: bash - name: Run build script run: ./build-backend.sh shell: bash working-directory: ./deploy - name: Archive build artifacts uses: actions/upload-artifact@v4 with: name: backend-build-artifacts path: deploy/cloudbeaver if-no-files-found: error