diff --git a/.github b/.github deleted file mode 100644 index 8b137891..00000000 --- a/.github +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 00000000..3c2c57be --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,35 @@ +name: Maven Build + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + - name: Make Maven wrapper executable + run: chmod +x ./mvnw + + - name: Build with Maven + run: ./mvnw clean package -DskipTests + + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: jar-files + path: | + eladmin-system/target/*.jar + **/target/*.jar