generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debugging release.yml to publish JARs
- Loading branch information
Showing
4 changed files
with
43 additions
and
33 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 |
---|---|---|
|
@@ -104,19 +104,22 @@ jobs: | |
with: | ||
java-version: "11" | ||
distribution: "temurin" | ||
server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_PASSWORD | ||
gpg-passphrase: SIGN_KEY_PASS | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
cache: 'maven' | ||
- name: Publish JARs | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
mvn release:clean release:prepare release:perform \ | ||
--batch-mode \ | ||
mvn -U -B clean deploy -P release \ | ||
-DreleaseVersion=$(git describe --tags --abbrev=0 | cut -c2-) \ | ||
-Dtag=$(git describe --tags --abbrev=0) \ | ||
-Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} \ | ||
-Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }} \ | ||
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \ | ||
-DserverId=ossrh | ||
-Dtag=$(git describe --tags --abbrev=0) | ||
--projects ftl-runner,ftl-controller | ||
env: | ||
SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }} | ||
OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
create-release: | ||
name: Release Go Binaries | ||
|
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
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
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