Skip to content

Commit

Permalink
fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciogoldchluk-yolo committed Aug 12, 2024
1 parent 8075edb commit 43f9384
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/hex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 43f9384

Please sign in to comment.