-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.01 KB
/
Copy pathrelease.yml
File metadata and controls
41 lines (32 loc) · 1.01 KB
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
# SPDX-License-Identifier: PMPL-1.0-or-later
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up OCaml
uses: ocaml/setup-ocaml@fefd9c240b9d934d5d25aa9c2a8caae6c7b40079 # v3
with:
ocaml-compiler: "5.1"
- name: Install dependencies
run: opam install . --deps-only
- name: Build release
run: opam exec -- dune build --release
- name: Create release archive
run: |
mkdir -p dist
cp _build/default/bin/main.exe dist/affinescript-linux-x64 || true
tar -czvf affinescript-linux-x64.tar.gz -C dist .
- name: Create GitHub Release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v2
with:
files: affinescript-linux-x64.tar.gz
generate_release_notes: true