Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zarate/upgrade mint #1

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish

on:
pull_request:
types:
- closed
branches:
- master

jobs:
publish_if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-20.04
env:
HEX_API_KEY: ${{ secrets.HEX_KEY }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
strategy:
matrix:
elixir: [ 1.12.2 ]
otp: [ 24.0.5 ]

steps:
- name: Check out
uses: actions/checkout@v2

- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}

- name: Install Mix Dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix hex.organization auth doofinder --key $HEX_API_KEY
mix deps.get

- name: Publish
run: |
HEX_API_KEY=$HEX_API_KEY mix hex.publish --yes

- name: Autotagger
uses: ButlerLogic/[email protected]
with:
strategy: regex
root: "${{ github.workspace }}/mix.exs"
regex_pattern: '@version "([0-9][0-9]?\.[0-9][0-9]?\.[0-9][0-9]?)"'
8 changes: 3 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
elixir: "~> 1.5",
deps: deps(),
package: package(),
source_url: "https://github.com/appodeal/clickhousex"
source_url: "https://github.com/doofinder/clickhousex"
]
end

Expand All @@ -23,10 +23,7 @@
defp deps do
[
{:db_connection, "~> 2.0.0"},
# TODO:
# The commit in mint drastically reduces string allocation and improves perf
# When they release, bump this to the released version
{:mint, github: "elixir-mint/mint", commit: "8d0d12131c8d4f80b85bc258c17dde60ab56ac1b"},
{:mint, "~> 1.5.1"},
{:castore, "~> 0.1"},
{:jason, "~> 1.1.2"},
{:ex_doc, "~> 0.19", only: :dev},
Expand All @@ -37,7 +34,8 @@
defp package do
[
name: "clickhousex",
organization: "doofinder",
description: description(),

Check warning on line 38 in mix.exs

View workflow job for this annotation

GitHub Actions / publish_if_merged (1.12.2, 24.0.5)

Mix.Local.path_for/1 is deprecated. Use Mix.path_for/1 instead
maintainers: maintainers(),
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/appodeal/clickhousex"}
Expand Down
Loading