This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Updated version to be proper semver (also bumped version) + Updated Spigot API to 1.16.5 + Added `NBTAPI` as a dependency + Added Ant maven plugin with an execution to copy jar to development server + Rewrote most of the classes to not be shitty spaghetti code + Added Sounds to application success and failure + Updated config strings
- Loading branch information
Showing
13 changed files
with
548 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
# Ensure that the GITHUB_TOKEN secret is included | ||
if [[ -z "$GITHUB_TOKEN" ]]; then | ||
echo "Set the GITHUB_TOKEN env variable." | ||
exit 1 | ||
fi | ||
|
||
# Prepare the headers for our curl-command. | ||
AUTH_HEADER="Authorization: Token ${GITHUB_TOKEN}" | ||
|
||
REQUEST_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" | ||
echo "Request URL is ${REQUEST_URL}" | ||
|
||
# Generate a temporary file. | ||
tmp=$(mktemp) | ||
|
||
# Request - capturing HTTP response-code in our output file. | ||
response=$(curl \ | ||
-sSL \ | ||
-H "${AUTH_HEADER}" \ | ||
--write-out "%{http_code}" \ | ||
--output $tmp \ | ||
"${REQUEST_URL}") | ||
|
||
# If the curl-command returned a non-zero response we must abort | ||
if [ "$?" -ne 0 ]; then | ||
echo "**********************************" | ||
echo " curl command did not return zero." | ||
echo " Aborting" | ||
echo "**********************************" | ||
cat $tmp | ||
rm $tmp | ||
exit 1 | ||
fi | ||
|
||
# If request is not successful, we must abort | ||
if [ $response -ge 400 ]; then | ||
echo "***************************" | ||
echo " request failed." | ||
echo " Aborting" | ||
echo " HTTP status is $response" | ||
echo "**********************************" | ||
cat $tmp | ||
rm $tmp | ||
exit 1 | ||
fi | ||
|
||
# Show pretty output, since we already have jq | ||
echo ::set-output name=COMMIT_MESSAGE::`cat $tmp | jq .commit.message` | ||
rm $tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "adopt" | ||
java-version: '8.0.292+1' | ||
|
||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
- name: Run Helper | ||
id: helper | ||
run: "chmod +x ./.github/release-helper && bash ./.github/release-helper" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
+ | ||
- name: Make Artifact Directory | ||
run: "mkdir ./artifacts" | ||
|
||
- name: Find and Move JARS | ||
run: "mv `find ./target -name ChunkSpawnerLimiter-*.jar -print` ./artifacts" | ||
|
||
- name: Upload to release | ||
uses: Puyodead1/upload-to-release@master | ||
with: | ||
args: './artifacts/ChunkSpawnerLimiter-*.jar' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - id: set_json | ||
# run: echo "::set-output name=json::[{\"title\":\"New Release!\",\"url\":\"${{ steps.create_release.outputs.url }}\",\"description\":\"A new release has been published for ${{ github.repository }}\",\"color\":3329330,\"timestamp\":\"2021-06-15T00:22:23.172Z\",\"author\":{\"name\":\"${{ github.repository }}\"},\"fields\":[{\"name\":\"Build\",\"value\":\"${{ github.run_id }}\"},{\"name\":\"Changes\",\"value\":\"${{ steps.helper.outputs.COMMIT_MESSAGE }}\"}]}]" | ||
# - name: Discord Release Message | ||
# if: success() | ||
# uses: Ilshidur/action-discord@master | ||
# env: | ||
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
# DISCORD_EMBEDS: ${{ steps.set_json.outputs.json }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "adopt" | ||
java-version: '8.0.292+1' | ||
|
||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
# - name: Run Helper | ||
# id: helper | ||
# run: "chmod +x ./.github/release-helper && bash ./.github/release-helper" | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# | ||
# - name: Make Artifact Directory | ||
# run: "mkdir ./artifacts" | ||
# | ||
# - name: Find and Move JARS | ||
# run: "mv `find . -name ChunkSpawnerLimiter-*.jar -print` ./artifacts" | ||
# | ||
# - name: Upload Artifact | ||
# if: success() | ||
# uses: actions/upload-artifact@master | ||
# with: | ||
# name: Artifacts | ||
# path: "./artifacts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.