From 0bbaa26867153811e9987c2fb638f388f1182ba4 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 13 Mar 2025 21:52:00 -0400 Subject: [PATCH 1/2] Add release action --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9ed03fc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + release: + types: [published] + +jobs: + release: + name: Release package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Elixir and Erlang versions + uses: erlef/setup-beam@v1 + id: setup-elixir + with: + version-type: strict + version-file: .tool-versions + + - name: Restore the cache + uses: actions/cache@v3 + with: + path: | + deps + _build + priv/plts + key: | + deps-${{ runner.os }}-${{ steps.setup-elixir.outputs.otp-version }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} + restore-keys: | + deps-${{ runner.os }}-${{ steps.setup-elixir.outputs.otp-version }}-${{ steps.setup-elixir.outputs.elixir-version }}-mixlockhash- + + - name: Setup project + run: | + mix setup + + - name: Publish package + run: | + mix hex.publish --organization movableink --replace --yes + env: + HEX_API_KEY: ${{ secrets.HEX_API_KEY }} \ No newline at end of file From 78dcd4ed9a82883bb7cb7324fb348fbbcc0c1eb7 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 13 Mar 2025 21:52:49 -0400 Subject: [PATCH 2/2] Add space --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ed03fc..f65e567 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,4 +39,4 @@ jobs: run: | mix hex.publish --organization movableink --replace --yes env: - HEX_API_KEY: ${{ secrets.HEX_API_KEY }} \ No newline at end of file + HEX_API_KEY: ${{ secrets.HEX_API_KEY }}