-
Notifications
You must be signed in to change notification settings - Fork 5
96 lines (81 loc) · 2.17 KB
/
publish-workflow.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: publish
run-name: Publish - ${{ github.event.head_commit.message || github.ref }}
on:
push:
tags:
- v*
jobs:
dependencies:
name: Install Dependencies Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} - ${{ matrix.os }}
uses: ./.github/workflows/dependencies-reusable.yml
with:
elixir: ${{ matrix.elixir }}
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
strategy:
matrix:
elixir: [1.14.3]
otp: [25.3]
os: [ubuntu-latest]
linting:
name: Linting Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} - ${{ matrix.os }}
uses: ./.github/workflows/linting-reusable.yml
with:
elixir: ${{ matrix.elixir }}
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
needs:
- dependencies
strategy:
matrix:
elixir: [1.14.3]
otp: [25.3]
os: [ubuntu-latest]
test:
name: Testing Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} - ${{ matrix.os }}
uses: ./.github/workflows/unit-test-reusable.yml
with:
elixir: ${{ matrix.elixir }}
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
needs:
- dependencies
strategy:
matrix:
elixir: [1.14.3]
otp: [25.3]
os: [ubuntu-latest]
analysis:
name: Analyse Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} - ${{ matrix.os }}
uses: ./.github/workflows/static-code-analysis-reusable.yml
with:
elixir: ${{ matrix.elixir }}
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
needs:
- dependencies
strategy:
matrix:
elixir: [1.14.3]
otp: [25.3]
os: [ubuntu-latest]
publish:
name: Publish Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} - ${{ matrix.os }}
uses: ./.github/workflows/publish-to-hex-reusable.yml
with:
elixir: ${{ matrix.elixir }}
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
environment: production
environment_url: https://hex.pm/packages/deepl_ex
secrets: inherit
needs:
- dependencies
- linting
- test
- analysis
strategy:
matrix:
elixir: [1.14.3]
otp: [25.3]
os: [ubuntu-latest]