Skip to content

Commit 4f552b7

Browse files
committed
GitHub Actions: Use rebar3 directly to publish to Hex.pm
[Why] The previous action we were using is using a docker image with Erlang installed in it... It breaks now because Khepri require a more recent version of Erlang than the one provided in that image. [How] Just call rebar3 directly, it will do the job just fine.
1 parent 600d28b commit 4f552b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-and-release.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,13 @@ jobs:
147147

148148
steps:
149149
- uses: actions/checkout@v4
150+
- uses: erlef/setup-beam@v1
151+
id: install-erlang
152+
with:
153+
otp-version: ${{ env.LATEST_ERLANG_VERSION }}
154+
rebar3-version: ${{ env.REBAR_VERSION }}
155+
150156
- name: Publish to Hex.pm
151-
uses: erlangpack/github-action@v3
152157
env:
153158
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
159+
run: rebar3 edoc && rebar3 hex publish -r hexpm --yes

0 commit comments

Comments
 (0)