-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (49 loc) · 1.45 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
54
55
56
57
58
name: Release
on:
workflow_dispatch:
inputs:
bundle:
description: "Bundle ID (link / next etc.)"
required: true
default: "link"
jobs:
tagged-release:
runs-on: ubuntu-20.04
env:
MIX_ENV: prod
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.17'
- name: Tag name
id: tag
run: echo ::set-output "name=TAG::${{github.event.inputs.bundle}}_$(date +%F)_${{github.run_number}}"
- id: setup-elixir
uses: erlef/setup-elixir@v1
with:
otp-version: "25.0.4"
elixir-version: "1.14.0"
- name: Setup the Elixir project
run: mix deps.get
working-directory: core
- name: Build Frontend
run: ./scripts/build-frontend
working-directory: core
- name: Build release
run: ./scripts/build-release
working-directory: core
env:
BUNDLE: ${{github.event.inputs.bundle}}
VERSION: ${{steps.tag.outputs.tag}}
- name: Archive release
run: tar cfj "../${{steps.tag.outputs.tag}}.tar.bz2" "${{steps.tag.outputs.tag}}"
working-directory: core
- uses: softprops/action-gh-release@v1
with:
tag_name: "${{steps.tag.outputs.tag}}"
prerelease: false
fail_on_unmatched_files: true
files: |
${{steps.tag.outputs.tag}}.tar.bz2