-
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
1 parent
c3db3b4
commit e175dd8
Showing
2 changed files
with
37 additions
and
2 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,35 @@ | ||
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 |
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