-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.62 KB
/
Copy pathrelease.yml
File metadata and controls
64 lines (54 loc) · 1.62 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build Installers
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
installer-type: deb
artifact-pattern: target/package/*.deb
artifact-name: fegloj-linux-deb
- os: windows-latest
installer-type: msi
artifact-pattern: target/package/*.msi
artifact-name: fegloj-windows-msi
- os: macos-latest
installer-type: dmg
artifact-pattern: target/package/*.dmg
artifact-name: fegloj-macos-dmg
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '25'
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: latest
- name: Build uberjar
run: clojure -T:build uber
- name: Build installer
run: clojure -T:build jpackage-installer
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: ${{ matrix.artifact-pattern }}
if-no-files-found: error
- name: Upload to release (on tag)
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.artifact-pattern }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}