From d222652f3e678c0598d77ad7a31be0bcd18e36ae Mon Sep 17 00:00:00 2001 From: Jan Marchel <123368854+jmarchel7bulls@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:54:46 +0200 Subject: [PATCH] Publishing Maven libraries using GitHub Actions --- .github/workflows/maven.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..ebefece --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +name: Build and Deploy Maven Package + +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' # Use the JDK version your project requires + distribution: 'adopt-openjdk' + + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + run: | + mvn clean deploy -Pgithub