Skip to content

Commit

Permalink
Added a very basic manual workflow that publishes the library.
Browse files Browse the repository at this point in the history
  • Loading branch information
gerak-cz committed Apr 19, 2024
1 parent 50d3e77 commit 8b9be82
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on: workflow_dispatch

jobs:
publish:
runs-on: macos-latest
env:
CLEVERLANCE_MAVEN_NEXUS_USERNAME: ${{ secrets.CLEVERLANCE_MAVEN_NEXUS_USERNAME }}
CLEVERLANCE_MAVEN_NEXUS_PASSWORD: ${{ secrets.CLEVERLANCE_MAVEN_NEXUS_PASSWORD }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: Publish to Maven
run: ./gradlew publish
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ subprojects {
maven {
url = uri("https://nexus.cleverlance.com/nexus/repository/maven-snapshots/")
credentials {
username = System.getenv("NEXUS_USERNAME")
password = System.getenv("NEXUS_PASSWORD")
username = System.getenv("CLEVERLANCE_MAVEN_NEXUS_USERNAME")
password = System.getenv("CLEVERLANCE_MAVEN_NEXUS_PASSWORD")
}
}
}
Expand Down

0 comments on commit 8b9be82

Please sign in to comment.