Skip to content

Commit

Permalink
Tweak the deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
wavejumper committed Jan 14, 2025
1 parent f5a2bfa commit 7f240ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ jobs:
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish package
run: mvn --batch-mode -Dsource=1.8 -Dtarget=1.8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 deploy
run: |
JAR_FILE=$(ls target/kpow-streams-agent-*.jar | grep -v "standalone" | head -n 1)
mvn --batch-mode \
-Dsource=1.8 \
-Dtarget=1.8 \
-Dmaven.compiler.source=1.8 \
-Dmaven.compiler.target=1.8 \
-Dfile=$JAR_FILE \
deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
:uberjar {:prep-tasks ["clean" "javac" "compile"]
:aot :all}
:classifiers [["sources" {:source-paths ^:replace []
:java-source-paths ^:replace ["src/java" "src/clojure"]
:java-source-paths ^:replace ["src/java"]
:resource-paths ^:replace ["javadoc"]}]
["javadoc" {:source-paths ^:replace []
:java-source-paths ^:replace []
Expand All @@ -67,5 +67,5 @@
"fmt" ["with-profile" "+smoke" "cljfmt" "check"]
"fmtfix" ["with-profile" "+smoke" "cljfmt" "fix"]}
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"]
:java-source-paths ["src/java" "src/clojure"]
:java-source-paths ["src/java"]
:source-paths ["src/clojure"])

0 comments on commit 7f240ab

Please sign in to comment.