Skip to content

Commit

Permalink
Update to bukkit 1.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-nekoneko committed Apr 2, 2020
1 parent a919c9b commit 83be50a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 6 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/RevertCrossBlock.jar
asset_name: RevertCrossBlock.jar
asset_content_type: application/java-archive
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.nekoneko</groupId>
<artifactId>revert-cross-block</artifactId>
<version>1.1</version>
<version>1.2</version>
<packaging>jar</packaging>

<name>RevertCrossBlock</name>
Expand All @@ -30,7 +30,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -39,7 +39,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -75,13 +75,13 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.13.2-R0.1-SNAPSHOT</version>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>1.5</version>
<version>1.7</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/nekoneko/revert/RevertCrossBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void onEnable() {
this.loadConfig();
this.getServer().getPluginManager().registerEvents(this, this);

new Metrics(this);
new Metrics(this, 4770);
}

private void loadConfig() {
Expand Down

0 comments on commit 83be50a

Please sign in to comment.