diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..e6236726 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Maven CI/CD + +on: + push: + branches: [ psreejeevitha-patch-1 ] + # pull_request: + # branches: [ master ] + +jobs: + build_and_test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + + - name: Build project with Maven + run: mvn -B package --file pom.xml + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: copy_main_folder + path: | + */main