Release #12
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
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
level: | |
description: 'Level' | |
required: true | |
entry: | |
description: 'Release note' | |
required: true | |
jobs: | |
build: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: '1.16' | |
otp-version: '26.2' | |
- name: Restore dependencies cache | |
uses: actions/[email protected] | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Setup git user | |
run: | | |
git config --global user.name 'tfiedlerdejanze' | |
git config --global user.email '[email protected]' | |
- name: Write release notes | |
run: echo ${{ github.event.inputs.entry }} > RELEASE.md | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Release & Publish | |
run: mix expublish.${{ github.event.inputs.level }} | |
env: | |
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |