File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Hex Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ publish :
13+ name : Publish to Hex
14+ runs-on : ubuntu-20.04
15+ steps :
16+ - uses : actions/checkout@v3
17+ - uses : erlef/setup-beam@v1
18+ with :
19+ elixir-version : " 1.14"
20+ otp-version : " 24"
21+ - run : mix deps.get
22+ - run : mix test
23+ - run : mix hex.publish --yes
24+ env :
25+ HEX_API_KEY : ${{ secrets.HEX_API_KEY }}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ # Release script
5+ #
6+ # Usage:
7+ # 1. Set new version in mix.exs
8+ # 2. Commit and push
9+ # 3. Run ./release.sh
10+ # 4. Let .github/workflows/publish.yml to publish
11+
12+ version=$( mix run -e ' IO.puts(Mix.Project.config[:version])' )
13+ git tag " v$version "
14+ git push " v$version "
You can’t perform that action at this time.
0 commit comments