You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, releases to maven are done manually, and it would be nice to do this within a script triggered by Travis. This may be a bit tricky because deploying requires signing the bits.
This would be super cool. You are also right, it might be tricky and there's a bit of a lack of information on how to do it. If I remember correctly we should add a <profile> element in settings.xml to tell the gpg maven plugin where to look for the gpg keys:
The pgp keys must then be signed (using either travis file-encrypt or openssl directly) and put in the repository (travis branch), lets call them secring.gpg.enc and pubring.gpg.enc. We must then add the decryption commands to the before_install phase in .travis.yml. If we use travis file-encrypt to encrypt the files the command should also output the code to decrypt them. We must only change the path to the encrypted files (as they will be in /target/travis), something like:
Once this is set up mvn clean deploy should do the job.
We could then trigger mvn clean deploy when tags are pushed (TRAVIS_TAG variable would be set with the tag name).
Activity
mziccard commentedon Sep 14, 2015
This would be super cool. You are also right, it might be tricky and there's a bit of a lack of information on how to do it. If I remember correctly we should add a
<profile>element insettings.xmlto tell the gpg maven plugin where to look for the gpg keys:The pgp keys must then be signed (using either
travis file-encryptor openssl directly) and put in the repository (travisbranch), lets call themsecring.gpg.encandpubring.gpg.enc. We must then add the decryption commands to thebefore_installphase in.travis.yml. If we usetravis file-encryptto encrypt the files the command should also output the code to decrypt them. We must only change the path to the encrypted files (as they will be in/target/travis), something like:Once this is set up
mvn clean deployshould do the job.We could then trigger
mvn clean deploywhen tags are pushed (TRAVIS_TAGvariable would be set with the tag name).build(java): use code-suggester v1 tag rather than full semver (#153)
chore(bazel): update protobuf to v3.21.3 (#153)
build(deps): update dependency org.apache.maven.plugins:maven-project…
chore(main): release 0.5.1-SNAPSHOT (#153)
chore(main): release 1.3.3 (#164)
chore(main): release 0.3.7-SNAPSHOT (#153)
deps: update dependency com.google.http-client:google-http-client-bom…
chore: release 1.101.2 (#180)
samples: add presubmit lint check (#153)
chore: regenerate CODEOWNERS from templates (#153)
deps: update dependency com.google.http-client:google-http-client-bom…
chore: release 1.101.2 (googleapis#180)
deps: update dependency org.threeten:threetenbp to v1.4.1 (googleapis…