Skip to content

Commit 97b0e94

Browse files
committed
Fix Hex publish gate
1 parent 50ac642 commit 97b0e94

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ jobs:
7878
rebar3-version: "3"
7979

8080
- name: Publish to Hex
81-
if: ${{ secrets.HEXPM_API_KEY != '' }}
8281
env:
8382
HEXPM_API_KEY: ${{ secrets.HEXPM_API_KEY }}
8483
run: |
84+
if [ -z "$HEXPM_API_KEY" ]; then
85+
echo "HEXPM_API_KEY is not set; skipping Hex publish."
86+
exit 0
87+
fi
8588
printf "I am not using semantic versioning\n" | gleam publish
8689
8790
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)