From a76bf0c6a0c5815d4bed8ac6d76ef2eb33e68598 Mon Sep 17 00:00:00 2001 From: zxq5 Date: Tue, 4 Feb 2025 10:23:05 +0000 Subject: [PATCH] add workflow --- .gitea/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/main.yml diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 0000000..77fb8b7 --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,23 @@ +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file -- 2.47.3