Skip to content

Commit 8395c36

Browse files
committed
Hexpm: Update
1 parent 25c783e commit 8395c36

2 files changed

Lines changed: 41 additions & 38 deletions

File tree

.github/workflows/hexpm-release.yml

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +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: Setup rebar3 hex
22-
run: |
23-
mkdir -p ~/.config/rebar3/
24-
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
25-
26-
- run: rebar3 edoc
27-
28-
- name: Prepare Markdown
29-
run: |
30-
echo "" >>README.md
31-
echo "## EDoc documentation" >>README.md
32-
echo "" >>README.md
33-
echo "You can check this library's " >>README.md
34-
echo "[EDoc documentation](edoc.html), " >>README.md
35-
echo "generated automatically from the source code comments." >>README.md
36-
37-
- name: Convert Markdown to HTML
38-
uses: natescherer/markdown-to-html-with-github-style-action@v1.1.0
39-
with:
40-
path: README.md
41-
42-
- run: |
43-
mv doc/index.html doc/edoc.html
44-
mv README.html doc/index.html
45-
46-
- name: Publish to hex.pm
47-
run: DEBUG=1 rebar3 hex publish --repo hexpm --yes
48-
env:
49-
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 }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ c_src/*.o
1111
config.log
1212
config.status
1313
deps
14+
doc
1415
ebin
1516
priv
1617
rebar.lock
18+
test/*.beam
1719
vars.config

0 commit comments

Comments
 (0)