Skip to content

Commit 3b07929

Browse files
committed
Reworked release system
1 parent 788b18f commit 3b07929

File tree

1 file changed

+48
-9
lines changed

1 file changed

+48
-9
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,63 @@ on:
88
required: true
99
default: '1.0.0'
1010
type: string
11-
tag:
12-
description: "Tag"
13-
required: true
14-
type: string
1511

1612
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- job-name: Build - Ubuntu x64
19+
os: ubuntu-22.04
20+
artifact-name: linux-x64.deb
21+
- job-name: Build - macOS x64
22+
os: macOS-12
23+
artifact-name: macOS-x64.dmg
24+
- job-name: Build - Windows x64
25+
os: windows-2022
26+
artifact-name: windows-x64.msi
27+
28+
name: ${{ matrix.job-name }}
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
34+
- uses: actions/setup-java@v3
35+
with:
36+
distribution: temurin
37+
java-version: 17
38+
39+
- name: Build with Gradle
40+
uses: gradle/gradle-build-action@v2
41+
with:
42+
arguments: |
43+
build
44+
-PmvnUsername=${{ secrets.TRAJOPT_MAVEN_USERNAME }}
45+
-PmvnPassword=${{ secrets.TRAJOPT_MAVEN_PASSWORD }}
46+
47+
- name: Generate jpackage
48+
uses: gradle/gradle-build-action@v2
49+
with:
50+
arguments: jpackage
51+
52+
- name: Upload jpackage
53+
uses: actions/[email protected]
54+
with:
55+
name: HelixNavigator-${{ inputs.version }}-${{ matrix.artifact-name }}
56+
path: app/build/package
57+
1758
release:
1859
name: Release
1960
runs-on: ubuntu-22.04
2061

2162
steps:
2263
- uses: actions/checkout@v2
23-
- uses: dsaltares/fetch-gh-release-asset@master
64+
65+
- uses: actions/download-artifact@v3
2466
with:
25-
version: 'tags/${{ inputs.tag }}'
26-
file: 'HelixNavigator-${{ inputs.version }}.*'
27-
target: 'pkgs/'
28-
token: '${{ secrets.GITHUB_TOKEN }}'
67+
path: 'pkgs/'
2968

3069
- uses: ncipollo/release-action@v1
3170
with:

0 commit comments

Comments
 (0)