Skip to content

Commit

Permalink
Remove dependency on Erlangpack and fix publishing of hex docs
Browse files Browse the repository at this point in the history
  • Loading branch information
onno-vos-dev committed Jan 27, 2023
1 parent 8f54b3c commit e798a5e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: rebar3 cover
- name: Produce Documentation
run: rebar3 edoc || true
run: rebar3 ex_doc || true
- name: Publish Documentation
uses: actions/upload-artifact@v1
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:
- name: Run EUnit Tests
run: rebar3 eunit

- name: Generate docs
run: rebar3 ex_doc

- uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to Hex.pm
uses: erlangpack/github-action@v3
- name: Publish to hex.pm
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: rebar3 hex publish -r hexpm --yes
17 changes: 11 additions & 6 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{erl_opts, [debug_info, {d, maps_support}]}.
{edoc_opts, [{dir, "doc"}]}.
{deps, [{erlware_commons, "1.6.0"},
{hackney, "1.18.0"},
{jsx, "3.0.0"}
]}.
{project_plugins, [rebar3_ex_doc]}.
{hex, [{doc, ex_doc}]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.
{hex, [{doc, #{provider => ex_doc}}]}.

{ex_doc, [
{source_url, <<"https://github.com/aws-beam/aws-erlang/">>},
{extras, [<<"README.md">>, <<"LICENSE.md">>]},
{main, <<"readme">>}]}.
{extras, [
{'README.md', #{title => <<"Overview">>}},
{'LICENSE.md', #{title => <<"License">>}}
]},
{main, <<"readme">>},
{homepage_url, <<"https://github.com/aws-beam/aws-erlang">>},
{source_url, <<"https://github.com/aws-beam/aws-erlang">>}
]}.
1 change: 0 additions & 1 deletion src/aws.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
, {pkg_name, "aws_erlang"}
, {licenses, ["Apache-2.0"]}
, {build_tools, ["rebar3"]}
, {doc, "doc"}
, {links, [{"GitHub", "https://github.com/aws-beam/aws-erlang"}]}
]}.

0 comments on commit e798a5e

Please sign in to comment.