Skip to content

Commit

Permalink
Merge pull request #614 from Team-EnderIO/chore/maven-publish-rvr
Browse files Browse the repository at this point in the history
Publish to my maven after release build is successful.
  • Loading branch information
Rover656 authored Feb 10, 2024
2 parents be45a86 + 97c594f commit e4cd8fd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:
with:
arguments: publishMod

# TODO: Publish to maven.

- name: Upload to GitHub Releases
uses: softprops/action-gh-release@v1
with:
Expand Down Expand Up @@ -89,6 +87,15 @@ jobs:
embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
embed-color: 15548997

# Publish to Rover's maven last. Failure email will still be sent, but it'll still release elsewhere
- name: Rover656 Maven Publish
uses: gradle/gradle-build-action@v2
env:
RVR_MAVEN_USER: ${{ secrets.RVR_MAVEN_USER }}
RVR_MAVEN_PASSWORD: ${{ secrets.RVR_MAVEN_PASSWORD }}
with:
arguments: publishAllPublicationsToRover656Repository

updateReleaseBranch:
needs: [release]
runs-on: ubuntu-latest
Expand Down
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,19 @@ publishing {
}
}
}
}

// TODO: Repositories to publish to...
repositories {
if (System.getenv("RVR_MAVEN_USER") != null) {
maven {
name = "Rover656"
url = "https://maven.rover656.dev/releases"
credentials {
username = System.getenv("RVR_MAVEN_USER")
password = System.getenv("RVR_MAVEN_PASSWORD")
}
}
}
}
}

Expand Down

0 comments on commit e4cd8fd

Please sign in to comment.