Skip to content

Commit

Permalink
Add hex release
Browse files Browse the repository at this point in the history
  • Loading branch information
gordalina committed Jul 15, 2020
1 parent 445cf1a commit 3d9571f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -109,6 +109,7 @@ jobs:
run: mix inch.report

release:
if: "startsWith(${{ github.ref }}, 'refs/head/v')"
name: release
strategy:
matrix:
Expand All @@ -117,6 +118,8 @@ jobs:
elixir: 1.10.3
runs-on: ubuntu-latest
needs: [test, checks, docs]
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
steps:
- uses: actions/checkout@v2.3.1
- uses: actions/setup-elixir@v1.3.0
Expand All @@ -129,5 +132,4 @@ jobs:
mix local.hex --force
mix deps.get
- name: Release
run: |
echo ${{github.ref}}
run: mix hex.publish --yes
2 changes: 1 addition & 1 deletion mix.exs
@@ -1,7 +1,7 @@
defmodule Hush.MixProject do
use Mix.Project

@version "0.0.1"
@version "0.0.2"
@source_url "https://github.com/gordalina/hush"

def project do
Expand Down

0 comments on commit 3d9571f

Please sign in to comment.