Skip to content

new sharding builder #1

new sharding builder

new sharding builder #1

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:

Check failure on line 34 in .github/workflows/deploy-package.yml

View workflow run for this annotation

GitHub Actions / Maven Publish

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-package.yml (Line: 34, Col: 9): Unexpected value 'secrets'
TOKEN: ${{ secrets.TOKEN }} # Dieses Token gewährt Zugriff auf GitHub Packages