Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path

name: Maven Package to Unnamed Repo and github packages
name: Maven Package to Hycraft Nexus

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -14,16 +12,16 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Java for publishing to unnamed repo
- name: Set up Java for publishing to Hycraft Nexus
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: unnamed-releases
server-id: hycraft-repo
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish to unnamed repo
- name: Publish to Hycraft Nexus
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.USERNAME }}
MAVEN_PASSWORD: ${{ secrets.TOKEN }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
16 changes: 6 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,19 @@

<repositories>
<repository>
<id>unnamed-snapshots</id>
<url>https://repo.unnamed.team/repository/unnamed-snapshots/</url>
</repository>
<repository>
<id>unnamed-releases</id>
<url>https://repo.unnamed.team/repository/unnamed-releases/</url>
<id>hycraft-repo</id>
<url>https://repos.hycraft.us/repository/hycraft/</url>
</repository>
</repositories>

<distributionManagement>
<snapshotRepository>
<id>unnamed-snapshots</id>
<url>https://repo.unnamed.team/repository/unnamed-snapshots/</url>
<id>hycraft-repo</id>
<url>https://repos.hycraft.us/repository/hycraft/</url>
</snapshotRepository>
<repository>
<id>unnamed-releases</id>
<url>https://repo.unnamed.team/repository/unnamed-releases/</url>
<id>hycraft-repo</id>
<url>https://repos.hycraft.us/repository/hycraft/</url>
</repository>
</distributionManagement>

Expand Down
Loading