Skip to content

Commit

Permalink
hex publish ci integration
Browse files Browse the repository at this point in the history
  • Loading branch information
shortishly committed Jun 1, 2023
1 parent ec4c30f commit ddb37cb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 9 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
---
on: [push]

on:
push:
branches:
- main
- develop
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
strategy:
matrix:
otp: [25.1, 26.0]
otp: [25, 26]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
- name: Build
run: make all dialyze tests
- run: make all dialyze tests
publish:
if: github.ref_name != 'main' && github.ref_name != 'develop'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: 26
- run: make hex-release-publish
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.
#
PROJECT = any
PROJECT_DESCRIPTION = Convert any type into an atom, binary, boolean, float, integer or list
PROJECT_VERSION = ${shell git describe --tags}
TEST_DEPS = triq

COVER = 1
Expand All @@ -23,6 +25,16 @@ PLT_APPS = \
crypto \
syntax_tools

define HEX_TARBALL_EXTRA_METADATA
#{
licenses => [<<"Apache-2">>],
links => #{
<<"GitHub">> => <<"https://github.com/shortishly/any">>
}
}
endef


include erlang.mk

app:: rebar.config
4 changes: 2 additions & 2 deletions ebin/any.app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, 'any', [
{description, ""},
{vsn, "rolling"},
{description, "Convert any type into an atom, binary, boolean, float, integer or list"},
{vsn, "0.3.0"},
{modules, ['any']},
{registered, []},
{applications, [kernel,stdlib]},
Expand Down

0 comments on commit ddb37cb

Please sign in to comment.