-
Notifications
You must be signed in to change notification settings - Fork 27
62 lines (62 loc) · 1.78 KB
/
release-linux.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
name: Release (Linux)
on:
workflow_dispatch:
inputs:
version:
description: "Version Number (x.y.z)"
required: true
type: string
platform:
description: "Platform Type"
required: false
default: ubuntu-latest
type: choice
options:
- ubuntu-20.04
workflow_call:
inputs:
version:
description: "Version Number (x.y.z)"
required: true
type: string
platform:
description: "Platform Type"
default: ubuntu-latest
required: true
type: string
env:
VERSION: ${{ inputs.version }}
ARTIFACT: AsTeRICS ${{ inputs.version }} (${{ inputs.platform }})
jobs:
build:
runs-on: ${{ inputs.platform }}
steps:
- name: Get Code
uses: actions/checkout@v3
- name: Install JDK
uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "zulu"
java-package: "jdk+fx"
architecture: "x64"
check-latest: true
- name: Build AsTeRICS
run: ant -buildfile Installer/asterics-are/build.xml deploy -Dfx.deploy.nativeBundles=deb -Dfx.application.version=$VERSION -Dfx.deploy.verbose=true
- name: Release .deb File
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: Installer/asterics-are/build/deploy/bundles/asterics-are-${{ env.VERSION }}.deb
install:
needs: build
runs-on: ubuntu-latest
steps:
- name: Get Software
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
- name: Setup Machine
run: sudo mkdir /usr/share/desktop-directories
- name: Install Package
run: sudo apt install ./asterics-are-${{ env.VERSION }}.deb