Skip to content

Commit 70b94a2

Browse files
committed
Hexpm: Update
1 parent d147d75 commit 70b94a2

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/hexpm-release.yml

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