From 8ed020a3865b1cc05d24635b3cf4b2cccd2a7dae Mon Sep 17 00:00:00 2001 From: TheFaser Date: Sun, 7 Apr 2024 03:18:25 +0500 Subject: [PATCH] add github actions --- .github/workflows/maven.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..9134c86 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,28 @@ +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 16 + uses: actions/setup-java@v3 + with: + java-version: '16' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Publish artifact + uses: actions/upload-artifact@v3 + with: + name: FlectoneMusic + path: target