Skip to content

Commit

Permalink
Move to GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Jan 16, 2023
1 parent 42e659c commit a5dd364
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 322 deletions.
60 changes: 39 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,57 @@
name: CI
name: Build

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

jobs:
build:
name: Build
strategy:
matrix:
java:
- "8"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Java 8
uses: actions/setup-java@v2
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: setup-java
name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: adopt
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- name: Setup Git
- id: setup-git
name: Setup Git
run: |
git config --global user.email "ci@example.com"
git config --global user.email "ci@github.com"
git config --global user.name "GitHub CI"
- name: Build SportPaper
- id: build
name: Build SportPaper
run: bash sportpaper build
- name: Upload SportPaper JAR
uses: actions/upload-artifact@v2
- id: upload
name: Upload SportPaper
uses: actions/upload-artifact@v3
with:
name: sportpaper-1.8.8-R0.1-SNAPSHOT.jar
path: SportPaper-Server/target/sportpaper-1.8.8-R0.1-SNAPSHOT.jar
name: SportPaper.jar
path: SportPaper-Server/target/sportpaper-*.jar
if-no-files-found: error
- name: Publish SportPaper JAR
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: mvn deploy --settings settings.xml
- id: deploy
if: |
github.repository_owner == 'Electroid' &&
github.ref == 'refs/heads/main'
name: Deploy SportPaper
run: mvn --batch-mode deploy
env:
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.idea/
/.vscode/
/base/mc-dev/
/SportPaper-API/
/SportPaper-Server/
*.iml
*.DS_Store

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SportPaper [![Build Status](https://travis-ci.org/Electroid/SportPaper.png?branch=master)](https://travis-ci.org/Electroid/SportPaper)
# SportPaper [![Status](https://github.com/Electroid/SportPaper/actions/workflows/ci.yml/badge.svg)](https://github.com/Electroid/SportPaper/actions)

A fork of Paper 1.8 with changes for the Stratus Network using Magnet's build system.
A performance-tuned Minecraft 1.8 server, forked from Spigot and Paper.

Requirements
------------

To build SportPaper, the following will need to be installed and available from your shell:

* [Oracle JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
* [Java 8](https://adoptium.net/temurin/releases/?version=8)
* [Git](https://git-scm.com)
* [Maven](https://maven.apache.org)

Expand All @@ -23,8 +23,8 @@ Maven
Repository:
```xml
<repository>
<id>ashcon-snapshots</id>
<url>https://repo.ashcon.app/nexus/content/repositories/snapshots/</url>
<id>sportpaper</id>
<url>https://maven.pkg.github.com/Electroid/SportPaper</url>
</repository>
```
API:
Expand Down
248 changes: 0 additions & 248 deletions arguments.txt

This file was deleted.

Loading

0 comments on commit a5dd364

Please sign in to comment.