forked from PetteriM1/ItemBlacklist
-
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.
- Loading branch information
CoolLoong
committed
Mar 2, 2024
1 parent
40a65a3
commit 49f156a
Showing
5 changed files
with
144 additions
and
39 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,49 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Read Project Info | ||
id: "info" | ||
uses: YunaBraska/java-info-action@main | ||
|
||
# CONFIGS (Optional) | ||
with: | ||
deep: '-1' | ||
work-dir: '.' | ||
jv-fallback: 17 | ||
pv-fallback: '1.0.0' | ||
pe-fallback: 'utf-8' | ||
custom-gradle-cmd: "clean build" | ||
custom-maven-cmd: "clean package" | ||
- name: Build with Maven | ||
run: mvn clean -B package --file pom.xml | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: ${{ steps.info.outputs.x_project_artifactId }} | ||
path: target/${{ steps.info.outputs.x_project_artifactId }}-${{ steps.info.outputs.project_version }}.jar |
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
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
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# stop the server before editing this or use 'blacklist <add|remove|list> <id:meta>' to edit blacklisted items | ||
# - "id:meta" (use '*' for all meta values) | ||
blacklist: | ||
- "666:0" | ||
- "999:0" | ||
- "888:*" | ||
- "minecraft:double_cut_copper_slab:0" |
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