From 146fc98c2fde906c6b419475c02485e246732826 Mon Sep 17 00:00:00 2001 From: Nekoneko Date: Thu, 2 Apr 2020 14:25:11 +0900 Subject: [PATCH] Update to bukkit 1.15.2 --- .github/workflows/deploy.yml | 54 ++++++++++++++++++++++++++++++++++++ pom.xml | 10 +++---- 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f8e7d4e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,54 @@ +name: Java CI + +on: + push: + branches: + - master + +jobs: + build: + name: Build and Deploy + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'ci skip')" + steps: + - name: Checkout branch + uses: actions/checkout@v2 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Cache Maven repository + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Build + id: build + run: mvn package + + - name: Set release tag + run: | + echo "::set-env name=TAG_NAME::$(echo $GITHUB_SHA | cut -c1-7)" + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.TAG_NAME }} + release_name: ${{ github.event.head_commit.message }} + body: Auto release + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/LiquidStopper.jar + asset_name: LiquidStopper.jar + asset_content_type: application/java-archive diff --git a/pom.xml b/pom.xml index 53b976f..a2c1d2f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.nekoneko liquidstopper - 1.0 + 1.1 jar LiquidStopper @@ -30,7 +30,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.8.1 1.8 1.8 @@ -39,7 +39,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.2.2 package @@ -75,7 +75,7 @@ org.bukkit bukkit - 1.13.2-R0.1-SNAPSHOT + 1.15.2-R0.1-SNAPSHOT provided @@ -85,4 +85,4 @@ compile - + \ No newline at end of file