-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JUCX: publish SNAPHOT and RELEASE jars to maven cental.
- Loading branch information
1 parent
1c75cfd
commit bfafc98
Showing
7 changed files
with
100 additions
and
23 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
parameters: | ||
target: publish | ||
temp_cfg: $(System.DefaultWorkingDirectory)/bindings/java/src/main/native/build-java/tmp-settings.xml | ||
gpg_dir: $(System.DefaultWorkingDirectory)/bindings/java/src/main/native/build-java/gpg | ||
|
||
steps: | ||
- bash: | | ||
set -eE | ||
{ | ||
echo -e "<settings><servers><server>" | ||
echo -e "<id>ossrh</id><username>\${env.SONATYPE_USERNAME}</username>" | ||
echo -e "<password>\${env.SONATYPE_PASSWORD}</password>" | ||
echo -e "</server></servers></settings>" | ||
} > ${{ parameters.temp_cfg }} | ||
displayName: Generate temporary config | ||
- task: DownloadSecureFile@1 | ||
displayName: Download Secure file | ||
inputs: | ||
secureFile: sparkucx-secret.gpg | ||
name: privateKey | ||
|
||
- task: DownloadSecureFile@1 | ||
displayName: Download Secure file | ||
inputs: | ||
secureFile: sparkucx-public.gpg | ||
name: publicKey | ||
|
||
- bash: | | ||
set -eE | ||
TAG=`git describe --tags` | ||
make -C bindings/java/src/main/native/ set-version JUCX_VERSION=${TAG:1} | ||
displayName: "Set JUCX release version" | ||
condition: and(succeeded(), eq('${{ parameters.target }}', 'publish')) | ||
- bash: | | ||
mkdir ${{ parameters.gpg_dir }} | ||
export GPG_TTY=`tty` | ||
chmod 700 ${{ parameters.gpg_dir }} | ||
cp $(publicKey.secureFilePath) ${{ parameters.gpg_dir }}/pubring.gpg | ||
cp $(privateKey.secureFilePath) ${{ parameters.gpg_dir }}/secring.gpg | ||
export GNUPGHOME=${{ parameters.gpg_dir }} | ||
make -C bindings/java/src/main/native/ ${{ parameters.target }} \ | ||
ARGS="--settings ${{ parameters.temp_cfg }}" | ||
displayName: Publish JUCX jar to maven central | ||
env: | ||
GPG_PASSPHRASE: $(GPG_PASSPHRASE) | ||
SONATYPE_PASSWORD: $(SONATYPE_PASSWORD) | ||
SONATYPE_USERNAME: $(SONATYPE_USERNAME) |
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