Skip to content

Commit

Permalink
Merge remote-tracking branch 'electroid/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoryeh committed Dec 22, 2023
2 parents 156cfa0 + e4afd29 commit 172c185
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Build
name: CI

on:
push:
paths:
- patches/**.patch
- scripts/**.sh
- pom.xml
- settings.xml
pull_request:
paths:
- patches/**.patch
- scripts/**.sh
workflow_dispatch:

jobs:
build:
name: Build (Java ${{ matrix.java }})
permissions:
contents: read
strategy:
matrix:
java:
- "8"
- "17"
runs-on: ubuntu-latest
steps:
- id: checkout
Expand All @@ -45,14 +43,21 @@ jobs:
name: Upload SportPaper
uses: actions/upload-artifact@v3
with:
name: SportPaper-Java-${{ matrix.java }}.jar
name: SportPaper.jar
path: SportPaper-Server/target/sportpaper-*.jar
if-no-files-found: error
deploy:
permissions:
contents: read
packages: write
need: build
if: |
github.repository_owner == 'Electroid' &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- id: deploy
if: |
github.repository_owner == 'Electroid' &&
github.ref == 'refs/heads/main' &&
matrix.java == '8'
name: Deploy SportPaper
run: mvn --batch-mode deploy
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SportPaper [![Status](https://github.com/Electroid/SportPaper/actions/workflows/build.yml/badge.svg)](https://github.com/Electroid/SportPaper/actions)
# SportPaper

A performance-tuned Minecraft 1.8 server, forked from Spigot and Paper.

Expand Down
4 changes: 2 additions & 2 deletions sportpaper
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ case "$1" in
cd "$basedir"
scripts/upstream.sh
scripts/apply.sh "$basedir"
mvn --batch-mode clean install
mvn clean install
# buildpaperclipjar
;;
"rb" | "rbp" | "rebuild")
Expand All @@ -60,7 +60,7 @@ case "$1" in
"j" | "jar")
(
set -e
mvn --batch-mode clean install
mvn clean install
# buildpaperclipjar
)
;;
Expand Down

0 comments on commit 172c185

Please sign in to comment.