chore(master): release 0.2.2 (#44) #37
This file contains hidden or 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: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Release Flow | |
jobs: | |
release-please: | |
strategy: | |
matrix: | |
elixir: [1.16.2] | |
otp: [26.2.3] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Prepare Release" | |
uses: googleapis/release-please-action@v4 | |
with: | |
release-type: elixir | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Fetch and Compile Dependencies | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
mix deps.get | |
mix deps.compile | |
- name: Publish to hex.pm | |
if: ${{ steps.release.outputs.release_created }} | |
run: HEX_API_KEY=${{ secrets.HEX_API_KEY }} mix hex.publish --yes |