diff --git a/.github/workflows/hex.yml b/.github/workflows/hex.yml index 5565375..7cd39a2 100644 --- a/.github/workflows/hex.yml +++ b/.github/workflows/hex.yml @@ -6,10 +6,26 @@ on: jobs: publish: runs-on: ubuntu-latest + name: Publish + strategy: + matrix: + otp: ['26'] + elixir: ['1.15.7'] + env: + HEX_API_KEY: ${{ secrets.HEX_API_KEY }} steps: - - name: Check out - uses: actions/checkout@v4 - - name: Publish to Hex.pm - uses: wesleimp/action-publish-hex@v1 - env: - HEX_API_KEY: ${{ secrets.HEX_API_KEY }} + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + - name: Restore dependencies cache + uses: actions/cache@v4 + with: + path: deps + key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-release-deps-${{ hashFiles('**/mix.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-release-deps-${{ hashFiles('**/mix.lock') }} + ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-release-deps + - run: mix deps.get + - run: mix hex.publish --yes diff --git a/mix.exs b/mix.exs index 6860178..4ffecab 100644 --- a/mix.exs +++ b/mix.exs @@ -5,7 +5,7 @@ defmodule Coney.Mixfile do [ app: :coney, version: "3.0.2", - elixir: ">= 1.10.0", + elixir: ">= 1.12.0", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(),