Skip to content

Commit f87b770

Browse files
Merge pull request #9 from ipdata/claude/fix-issue-3Hl6Y
Fix hex publish by passing --repo hexpm to read HEX_API_KEY
2 parents 189d15b + c865735 commit f87b770

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,14 @@ jobs:
6060
key: ${{ runner.os }}-otp-27-build-${{ hashFiles('rebar.config') }}
6161
restore-keys: ${{ runner.os }}-otp-27-build-
6262

63-
- name: Check HEX_API_KEY
64-
run: |
65-
if [ -z "$HEX_API_KEY" ]; then
66-
echo "::error::HEX_API_KEY secret is not set. Go to repo Settings > Secrets and variables > Actions and add a HEX_API_KEY secret with a valid hex.pm write key."
67-
exit 1
68-
fi
69-
env:
70-
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
71-
7263
- name: Publish to Hex.pm
73-
run: rebar3 hex publish --yes
64+
run: rebar3 hex publish --repo hexpm --yes
7465
env:
7566
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
7667

7768
- name: Generate and publish docs
7869
run: |
7970
rebar3 ex_doc
80-
rebar3 hex docs publish --yes
71+
rebar3 hex docs publish --repo hexpm --yes
8172
env:
8273
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 commit comments

Comments
 (0)