Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
1.16 R3 support. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek authored Nov 13, 2020
1 parent c38dd9b commit 420500f
Show file tree
Hide file tree
Showing 36 changed files with 1,056 additions and 55 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@ jobs:

- name: Build with Maven
run: mvn install -Dgpg.skip=true -ntp -B

- uses: actions/upload-artifact@v2
with:
name: FakePlayer
path: fakeplayer-plugin/target/FakePlayer.jar
59 changes: 59 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: publish

on:
pull_request:
types: [ closed ]

jobs:
tag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Get release label of the pull request.
uses: actions-ecosystem/action-release-label@v1
id: release-label

- name: Cancel if the the p.r. does not have the release labels.
if: ${{ steps.release-label.outputs.level == null }}
run: exit 1

- name: Turnstyle
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v2

- name: Get Latest Release
uses: pozetroninc/[email protected]
id: version
with:
owner: spigotplugins
repo: fakeplayer

- name: Bump and return the new version.
uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.version.outputs.release }}
level: ${{ steps.release-label.outputs.level }}

- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Publish with Maven
run: |
[[ "${{ steps.bump-semver.outputs.new_version }}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
mvn versions:set -DnewVersion="${{ steps.bump-semver.outputs.new_version }}" -ntp -B
mvn install -Dgpg.skip=true -ntp -B
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.bump-semver.outputs.new_version }}
tag: ${{ steps.bump-semver.outputs.new_version }}
artifacts: "fakeplayer-plugin/target/FakePlayer.jar"
Loading

0 comments on commit 420500f

Please sign in to comment.