Skip to content

Commit fc0381c

Browse files
committed
Revert --key flag, rebar3_hex reads HEX_API_KEY from env directly
The --key flag is not a valid option for rebar3 hex publish. The rebar3_hex_config module reads HEX_API_KEY from the environment via os:getenv and uses it directly as the API key. The env var just needs to be set, no flag needed. https://claude.ai/code/session_01RBbLduNgvjWctN2Dj12UDY
1 parent e6a2021 commit fc0381c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ jobs:
6161
restore-keys: ${{ runner.os }}-otp-27-build-
6262

6363
- name: Publish to Hex.pm
64-
run: rebar3 hex publish --yes --key "$HEX_API_KEY"
64+
run: rebar3 hex publish --yes
6565
env:
6666
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
6767

6868
- name: Generate docs
6969
run: rebar3 ex_doc
7070

7171
- name: Publish docs
72-
run: rebar3 hex docs publish --yes --key "$HEX_API_KEY"
72+
run: rebar3 hex docs publish --yes
7373
env:
7474
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 commit comments

Comments
 (0)