Skip to content

Commit 4db93ea

Browse files
pepicrftpepicrft
authored andcommitted
fix(ci): publish docs alongside the package
mix hex.publish package --yes only ships the tarball and skips the HexDocs upload, so https://hexdocs.pm/javex was empty for every release so far. Drop the package subcommand to publish both at once. Make ex_doc available in :prod too so the docs step has the generator when MIX_ENV=prod is set in the release workflow. This bumps to v0.1.4 with the same library code as v0.1.3 plus the first-ever HexDocs payload.
1 parent a1ea739 commit 4db93ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ jobs:
256256
# Irreversible block — order is load-bearing.
257257
##
258258

259-
- name: Publish to hex.pm
260-
run: mix hex.publish package --yes
259+
- name: Publish to hex.pm (package + docs)
260+
run: mix hex.publish --yes
261261

262262
- name: Configure git
263263
run: |

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule Javex.MixProject do
2929
{:jason, "~> 1.4"},
3030
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
3131
{:quokka, "~> 2.7", only: [:dev, :test], runtime: false},
32-
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
32+
{:ex_doc, "~> 0.34", only: [:dev, :prod], runtime: false}
3333
]
3434
end
3535

0 commit comments

Comments
 (0)