From b6c78e04cd8ddf59ea5ab95880f6ae0d9316e7d4 Mon Sep 17 00:00:00 2001 From: jaeyson Date: Sun, 4 Sep 2022 20:49:52 +0800 Subject: [PATCH] add commit message for publishing to hex.pm --- .github/workflows/ci.yml | 1 + mix.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0df4539..b89ffad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to Hex + if: "contains(github.event.head_commit.message, '[publish to hex]')" run: | mix hex.config api_key ${{ secrets.HEX_API_KEY }} mix hex.publish --yes diff --git a/mix.exs b/mix.exs index dae5b17..53939dd 100644 --- a/mix.exs +++ b/mix.exs @@ -63,7 +63,7 @@ defmodule FreecodecampElixir.MixProject do defp docs do [ - main: "README", + main: "readme", extra_section: "PAGES", authors: ["Jaeyson Anthony Y."], api_reference: false,