Policies now provide their own checks to whether the player applies or not.
Added GlobalPolicy. Revamped config YAML structure for more consistency. Added ChatColor back to commands, should be correctly implemented in the future. Build environment is now passed to plugin manifest. Added workflow to automatically build releases.
This commit is contained in:
parent
7bf4346750
commit
81bf64c463
21 changed files with 312 additions and 241 deletions
44
.github/workflows/release-build.yml
vendored
Normal file
44
.github/workflows/release-build.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: Release Build
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NEMESIS_VERSION_NAME: "${{ github.ref_name }}"
|
||||
NEMESIS_BUILD_CHANNEL: "production"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v5.1.0
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
|
||||
- name: Download CB1060
|
||||
run: |
|
||||
mkdir -p libs
|
||||
curl -L -o libs/craftbukkit-1060.jar \
|
||||
https://archive.org/download/craftbukkit1060/craftbukkit1-7-3%281060%29.jar
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew buildAll
|
||||
|
||||
- name: Upload JARs to release
|
||||
uses: softprops/action-gh-release@v2.5.0
|
||||
with:
|
||||
files: build/libs/*.jar
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
body: |
|
||||
Automated build for release **${{ github.ref_name }}**.
|
||||
Includes the following artifacts:
|
||||
- `$(ls build/libs/*.jar | tr '\n' '\n' | sed 's/^/ - /')`
|
||||
Loading…
Add table
Add a link
Reference in a new issue