-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.19 KB
/
release-please.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
43
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