Skip to content

Commit eb8d50e

Browse files
committed
Hexpm: Update workflow
1 parent 65e90a8 commit eb8d50e

1 file changed

Lines changed: 39 additions & 42 deletions

File tree

.github/workflows/hexpm-release.yml

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