-
-
Notifications
You must be signed in to change notification settings - Fork 82
53 lines (45 loc) · 1.2 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
43
44
45
46
47
48
49
50
51
52
53
name: Release Lexical
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
name: Build and release Lexical
permissions:
contents: write
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "24.3.4.12"
elixir-version: "1.13.4-otp-24"
version-type: strict
- name: Checkout code
uses: actions/checkout@v3
- name: Cache deps
id: cache-deps
uses: actions/cache@v3
env:
cache-name: cache-elixir-deps
with:
path: deps
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ env.cache-name }}-
- name: Install dependencies
run: mix deps.get
- name: Compile
run: mix compile
- name: Build release
run: mix package --zip
- name: Archive release
run: |
cp lexical.zip lexical-${{ github.ref_name }}.zip
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: lexical*.zip
makeLatest: true
generateReleaseNotes: true