Skip to content

Commit 9eeddc1

Browse files
committed
Hexpm: Update
1 parent c1cfffc commit 9eeddc1

File tree

1 file changed

+39
-24
lines changed

1 file changed

+39
-24
lines changed

.github/workflows/hexpm-release.yml

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,42 @@ jobs:
99
release:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- name: Check out
13-
uses: actions/checkout@v4
14-
15-
- name: Get Erlang/OTP
16-
uses: erlef/setup-beam@v1
17-
with:
18-
otp-version: 26
19-
rebar3-version: '3.24.0'
20-
21-
- name: Get Erlang/OTP
22-
uses: erlef/setup-beam@v1
23-
with:
24-
otp-version: 27
25-
rebar3-version: '3.24.0'
26-
27-
- name: Setup rebar3 hex
28-
run: |
29-
mkdir -p ~/.config/rebar3/
30-
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
31-
32-
- name: Publish to hex.pm
33-
run: DEBUG=1 rebar3 hex publish --repo hexpm --yes
34-
env:
35-
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
12+
- name: Check out
13+
uses: actions/checkout@v6
14+
15+
- name: Get Erlang/OTP
16+
uses: erlef/setup-beam@v1
17+
with:
18+
otp-version: 28
19+
rebar3-version: '3.27.0'
20+
21+
- name: Generate documentation
22+
run: rebar3 edoc
23+
24+
- name: Prepare Markdown
25+
run: |
26+
echo "" >>README.md
27+
echo "## EDoc documentation" >>README.md
28+
echo "" >>README.md
29+
echo "You can check this library's " >>README.md
30+
echo "[EDoc documentation](edoc.html), " >>README.md
31+
echo "generated automatically from the source code comments." >>README.md
32+
33+
- name: Convert Markdown to HTML
34+
uses: natescherer/markdown-to-html-with-github-style-action@v1.1.0
35+
with:
36+
path: README.md
37+
38+
- run: |
39+
mv doc/index.html doc/edoc.html
40+
mv README.html doc/index.html
41+
42+
- name: Setup rebar3 hex
43+
run: |
44+
mkdir -p ~/.config/rebar3/
45+
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
46+
47+
- name: Publish to hex.pm
48+
run: DEBUG=1 rebar3 hex publish --repo hexpm --yes
49+
env:
50+
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 commit comments

Comments
 (0)