Repository navigation
Publish to Hex from the CI release job and release 0.1.0 - #19
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 11, 2026 14:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
releasejob in the CI workflow now tagsv0.1.0when the repository has nov*tag. It reads the version from@versioninmix.exs.mix git_ops.release --initialrefuses to run whileCHANGELOG.mdexists, so the first release skipsgit_ops.v*tag exists, the job runsmix git_ops.release --yesas before. Both paths export the tag they created as thetagjob output.publishjob callsrelease.ymlwith that tag. Tags pushed withGITHUB_TOKENstart no workflow runs, so the oldrelease: publishedtrigger never fired. Nothing created a GitHub Release either.release.ymlnow takes ataginput throughworkflow_callandworkflow_dispatch. It checks out the tag and fails if the tag differs frommix.exs. Then it runsmix hex.publish --yes./releasecommand now says to rungh 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 --> publishMerging this releases
flicker0.1.0 to Hex. The Hex nameflickeris unclaimed. AHEX_API_KEYsecret must exist before merge. The repository has none, so it has to come from the org or be added to the repo.