From f468d97909e171940db703f7690bc1be01156f44 Mon Sep 17 00:00:00 2001 From: tennc <670357+tennc@users.noreply.github.com> Date: Sun, 6 Mar 2022 07:47:46 +0800 Subject: [PATCH] GH Actions (#138) * Create maven.yml --- .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..59e2902 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: ysoserial + # Directory containing files to upload + path: /home/runner/work/ysoserial/ysoserial/target/