Skip to content

Commit

Permalink
release(main): 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wkirschbaum committed Jul 28, 2023
1 parent 495dad4 commit 22ed35c
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/elixir.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
test:
strategy:
matrix:
elixir: [1.14.4]
otp: [24.2, 25.2]
elixir: [1.14.4, 1.15.4]
otp: [24.2, 25.2, 26]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
name: release
runs-on: ubuntu-latest
strategy:
matrix:
otp: [25.3]
elixir: [1.14.x]
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: elixir
package-name: za_national_id

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}

- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
if: ${{ steps.release.outputs.release_created }}

- uses: actions/cache@v3
id: cache
if: ${{ steps.release.outputs.release_created }}
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-
- name: Install Dependencies
if: steps.release.outputs.release_created && steps.cache.outputs.cache-hit != 'true'
run: mix deps.get

- name: publish to hex
if: ${{ steps.release.outputs.release_created }}
env:
HEX_API_KEY: ${{secrets.HEX_API_KEY}}
run: |
mix hex.publish --yes
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [0.1.4]

Add automated releases
4 changes: 1 addition & 3 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
defmodule ZaIdNumber.MixProject do
use Mix.Project

@version "0.1.2"

def project do
[
app: :za_id_number,
version: @version,
version: "0.1.4",
elixir: "~> 1.14",
description: description(),
package: package(),
Expand Down

0 comments on commit 22ed35c

Please sign in to comment.