diff --git a/.gitea/workflows/deploy-api.yml b/.gitea/workflows/deploy-api.yml index 38d5eb7..7733811 100644 --- a/.gitea/workflows/deploy-api.yml +++ b/.gitea/workflows/deploy-api.yml @@ -9,8 +9,9 @@ jobs: docker: strategy: matrix: - arch: ["ubuntu-latest"] - runs-on: ${{ matrix.arch }} + java-version: ["17"] + maven-version: ["3.8.5"] + runs-on: ubuntu-latest defaults: run: working-directory: "./API" @@ -20,6 +21,16 @@ jobs: # Checkout the repo - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Setup Java and Maven + - name: Set up JDK and Maven + uses: s4u/setup-maven-action@v1.12.0 + with: + java-version: ${{ matrix.java-version }} + distribution: "zulu" + maven-version: ${{ matrix.maven-version }} # Deploy to Dokku - name: Deploy to Dokku