-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.13 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/cache@v4.0.2
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 'tfiedlerdejanze@users.noreply.github.com'
- 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 }}