Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on Erlangpack and fix publishing of hex docs #120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
run: rebar3 cover
- name: Produce Documentation
run: rebar3 edoc || true
- name: Produce Documentation
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"}]}
]}.