From 3d9571f4c3251196da28f51d9e65aea5175495cb Mon Sep 17 00:00:00 2001 From: Samuel Gordalina Date: Wed, 15 Jul 2020 15:41:04 -0700 Subject: [PATCH] Add hex release --- .github/workflows/ci.yml | 6 ++++-- mix.exs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bb3402..42ef1fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,7 @@ jobs: run: mix inch.report release: + if: "startsWith(${{ github.ref }}, 'refs/head/v')" name: release strategy: matrix: @@ -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 @@ -129,5 +132,4 @@ jobs: mix local.hex --force mix deps.get - name: Release - run: | - echo ${{github.ref}} + run: mix hex.publish --yes diff --git a/mix.exs b/mix.exs index 1b18fca..d08d02b 100644 --- a/mix.exs +++ b/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