Skip to content

Publish to Hex from the CI release job and release 0.1.0 - #19

Merged
C-Sinclair merged 1 commit into
mainfrom
ci/release-0.1.0
Nov 11, 2026
Merged

C-Sinclair merged 1 commit into
mainfrom
ci/release-0.1.0

Conversation

@C-Sinclair

Copy link
Copy Markdown
Collaborator
  • The release job in the CI workflow now tags v0.1.0 when the repository has no v* tag. It reads the version from @version in mix.exs. mix git_ops.release --initial refuses to run while CHANGELOG.md exists, so the first release skips git_ops.
  • Once a v* tag exists, the job runs mix git_ops.release --yes as before. Both paths export the tag they created as the tag job output.
  • A new publish job calls release.yml with that tag. Tags pushed with GITHUB_TOKEN start no workflow runs, so the old release: published trigger never fired. Nothing created a GitHub Release either.
  • release.yml now takes a tag input through workflow_call and workflow_dispatch. It checks out the tag and fails if the tag differs from mix.exs. Then it runs mix hex.publish --yes.
  • The /release command now says to run gh workflow run release.yml -f tag=<tag> after a manual release.
flowchart LR
  push[push to main] --> latest[latest: mix check]
  latest --> release{v* tag exists?}
  release -- no --> tag[git tag v0.1.0]
  release -- yes --> gitops[mix git_ops.release]
  tag --> publish[release.yml: mix hex.publish]
  gitops --> publish
Loading

Merging this releases flicker 0.1.0 to Hex. The Hex name flicker is unclaimed. A HEX_API_KEY secret must exist before merge. The repository has none, so it has to come from the org or be added to the repo.

Tag the mix.exs version when no v* tag exists, so the first push to
main after this releases 0.1.0. Call release.yml from CI with the new
tag, because tags pushed with GITHUB_TOKEN start no workflow runs and
the release: published trigger never fired.
@C-Sinclair
C-Sinclair marked this pull request as ready for review November 11, 2026 14:54
@C-Sinclair
C-Sinclair merged commit 619883a into main Nov 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant