erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

add support for CI friendly publishing #139

Closed starbelly closed 4 years ago

starbelly commented 4 years ago

This allows a user to circumvent traditional config files and prompts suitable for automating CI workflows.

Allows for the following:

HEX_API_KEY=some_write_key rebar3 hex publish --yes

Look ma, no prompts!

starbelly commented 4 years ago

One last thing to add a --yes option.

starbelly commented 4 years ago

This one is good to go 🎅

tsloughter commented 4 years ago

I thought mix/hex were explicitly against a feature like this. But mix actually supports it?

starbelly commented 4 years ago

@tsloughter mix supports it https://hexdocs.pm/hex/Mix.Tasks.Hex.Config.html#content . See config overrides.

I thought about this myself a bit and came to the conclusion that people will inevitability automate this with or without this support. So, the question then becomes whether to discourage it in documentation or not, but that's another story.

starbelly commented 4 years ago

It should be noted mix also provides a --yes option on the publish task.