-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.44 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
---
name: Release
"on":
schedule:
- cron: 0 */2 * * *
workflow_dispatch: {}
push:
branches-ignore:
- main
pull_request:
branches:
- "*"
jobs:
release:
name: Release
strategy:
matrix:
darwin64-vsn: ["11", "12", "13"]
fail-fast: true
max-parallel: 1
runs-on: macos-${{matrix.darwin64-vsn}}
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
# We want jobs to always checkout the updated branch
ref: ${{github.ref_name}}
- name: Configure and build
timeout-minutes: 60
id: config_build
run: |
./.github/workflows/release.sh ${{matrix.darwin64-vsn}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
body: >
This is
Erlang/OTP ${{steps.config_build.outputs.otp_vsn}} compiled for
Darwin ${{matrix.darwin64-vsn}} (64 bit).
files: |
${{steps.config_build.outputs.tar_gz}}
${{steps.config_build.outputs.sha256_txt}}
tag_name: ${{steps.config_build.outputs.git_tag}}
target_commitish: ${{steps.config_build.outputs.target_commitish}}
if: "${{github.ref == 'refs/heads/main' &&
steps.config_build.outputs.target_commitish != ''}}"