Skip to content
Open
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: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Verify tag matches app version
run: |
TAG_VERSION="${GITHUB_REF_NAME#v}"
APP_VERSION="$(elixir -e 'IO.puts(Application.spec(:hippy, :vsn))')"
APP_VERSION="$(mix run --no-compile -e 'IO.puts(Application.spec(:hippy, :vsn))' | tail -n 1)"

if [ -z "$APP_VERSION" ]; then
echo "Could not read app version"
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ This repository now has automated publishing in [.github/workflows/release.yml](
### Publish flow

1. Ensure `HEX_API_KEY` is available to Actions (typically as an organization secret).
2. Update `version` in `mix.exs` to the release version (for example `0.4.2`).
3. Create and push a matching git tag with a `v` prefix:
2. Update `version` in `mix.exs` to the release version.
3. Create and push a matching git tag from the app version:
```bash
git tag -a v0.4.2 -m "Release v0.4.2"
git push origin v0.4.2
VERSION="$(mix run --no-compile -e 'IO.puts(Application.spec(:hippy, :vsn))' | tail -n 1)"
git tag -a "v${VERSION}" -m "Release v${VERSION}"
git push origin "v${VERSION}"
```
4. The workflow runs tests, verifies tag/version match, publishes to Hex (`--organization draftkings`), and creates a GitHub Release.

Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use Mix.Config
import Config