From b962089bdb18aba3bcafe1ace054ebe9cc864da3 Mon Sep 17 00:00:00 2001 From: Igor Budzhak Date: Tue, 29 Oct 2024 20:34:34 +0200 Subject: [PATCH] added github workflow --- .github/workflows/build.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..1eccdfb --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,35 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '21' + + - name: Build + run: | + chmod +x ./gradlew + ./gradlew build + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: build + path: | + ./build/libs/*.jar + !./build/libs/*-sources.jar + compression-level: 0 + if-no-files-found: error \ No newline at end of file