Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: automate clojars releases for release tags with travis-ci #474

Merged

Conversation

k13gomez
Copy link
Contributor

@k13gomez k13gomez commented Jan 18, 2022

Discussed in #473

@k13gomez k13gomez linked an issue Jan 18, 2022 that may be closed by this pull request
@k13gomez
Copy link
Contributor Author

k13gomez commented Jan 18, 2022

This might break a few things while I work on it, just noticed build status didn't update, but this is the overall approach.
edit: build ran now.

["clojars" {:url "https://repo.clojars.org"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this isn't completely ideal, but since we (at least I) haven't published the GPG key I used to manually deploy in reality it isn't much different from what we've done before. Also in practice it would be quite obvious if releases that didn't have a corresponding tag were created and since nobody has ever asked about signature on the jars I'm guessing it isn't checked. So basically I think this is OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this would be fine as well, if someone has an issue with jar signing in the future we can open a new issue and find a way to get GPG working on the CI environment but I don't think that will be the case.

:creds :gpg}]])
:creds :gpg}]
["clojars" {:url "https://repo.clojars.org"
:username :env/clojars_username
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From some quick googling it looks like we'll need these variables to be added using the instructions at https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables. Is that what you're thinking? I could have missed something of course, I haven't looked at the travis docs in much depth to be honest.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WilliamParker yes, I have already added the variables from the build configuration in Travis CI console

@k13gomez
Copy link
Contributor Author

@mrrodriguez @EthanEChristian do you have any concerns? Think we can get this approved/merged to start doing releases more easily?

Copy link
Collaborator

@mrrodriguez mrrodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see any issues with this. The jar signing situation is interesting, but sounds like something we can address later if needed.

Copy link
Contributor

@EthanEChristian EthanEChristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues with this addition

@k13gomez k13gomez merged commit 32afa31 into oracle-samples:main Jan 20, 2022
@k13gomez k13gomez deleted the automate-clojars-releases branch January 20, 2022 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate releases to clojars from release tags
4 participants