new sharding builder #1
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
name: Maven Publish | ||
on: | ||
push: | ||
branches: | ||
- unstable # Anpassen, wenn Ihre Hauptentwicklungsbranch einen anderen Namen hat | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' # Anpassen, je nach Ihrer verwendeten Java-Version | ||
- name: Build and publish Maven package | ||
run: | | ||
mvn -B clean package | ||
mvn deploy | ||
env: | ||
MAVEN_CLI_OPTS: -DskipTests # Hier können Sie weitere Maven-Optionen hinzufügen | ||
- name: Publish to GitHub Packages | ||
run: | | ||
echo "//maven.pkg.github.com/Strafbefehl/Vinyl-Core/:username=Strafbefehl" > ~/.m2/serverId.properties | ||
mvn deploy | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
secrets: | ||
TOKEN: ${{ secrets.TOKEN }} # Dieses Token gewährt Zugriff auf GitHub Packages |