chore(main): release 0.3.1 (#5) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Release Please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
with: | |
release-type: elixir | |
- uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
otp-version: "26" | |
elixir-version: "1.17" | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
if: ${{ steps.release.outputs.release_created }} | |
run: mix deps.get | |
- name: Run tests | |
if: ${{ steps.release.outputs.release_created }} | |
run: mix test | |
- name: Publish to Hex.pm | |
if: ${{ steps.release.outputs.release_created }} | |
run: HEX_API_KEY={{secrets.HEX_API_KEY}} mix hex.publish --yes |