Skip to content

Commit c8972ea

Browse files
authored
build: Add release workflow (#8)
1 parent 54987f4 commit c8972ea

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
name: Release
4+
5+
on:
6+
push:
7+
tags:
8+
- v*.*.*
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v4
16+
- uses: erlef/setup-beam@v1
17+
with:
18+
otp-version: '27'
19+
rebar3-version: '3.24'
20+
- run: rebar3 compile
21+
- name: Publish to hex.pm
22+
env:
23+
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
24+
run: rebar3 hex publish -r hexpm --yes

src/base32.app.src

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{application, base32, [
2-
{description, "Erlang implementation of base32 encoding and decoding"},
3-
{vsn, "0.1"},
4-
{registered, []},
5-
{applications, [
6-
kernel,
7-
stdlib
8-
]},
9-
{env, []}
2+
{description, "Erlang implementation of base32 encoding and decoding."},
3+
{vsn, git},
4+
{applications, [kernel, stdlib]},
5+
{licenses, ["Apache-2.0"]},
6+
{links, [{"GitHub", "https://github.com/dnsimple/base32_erlang"}]}
107
]}.

0 commit comments

Comments
 (0)