|
8 | 8 | required: true
|
9 | 9 | default: '1.0.0'
|
10 | 10 | type: string
|
11 |
| - tag: |
12 |
| - description: "Tag" |
13 |
| - required: true |
14 |
| - type: string |
15 | 11 |
|
16 | 12 | 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 | + |
| 54 | + with: |
| 55 | + name: HelixNavigator-${{ inputs.version }}-${{ matrix.artifact-name }} |
| 56 | + path: app/build/package |
| 57 | + |
17 | 58 | release:
|
18 | 59 | name: Release
|
19 | 60 | runs-on: ubuntu-22.04
|
20 | 61 |
|
21 | 62 | steps:
|
22 | 63 | - uses: actions/checkout@v2
|
23 |
| - - uses: dsaltares/fetch-gh-release-asset@master |
| 64 | + |
| 65 | + - uses: actions/download-artifact@v3 |
24 | 66 | with:
|
25 |
| - version: 'tags/${{ inputs.tag }}' |
26 |
| - file: 'HelixNavigator-${{ inputs.version }}.*' |
27 |
| - target: 'pkgs/' |
28 |
| - token: '${{ secrets.GITHUB_TOKEN }}' |
| 67 | + path: 'pkgs/' |
29 | 68 |
|
30 | 69 | - uses: ncipollo/release-action@v1
|
31 | 70 | with:
|
|
0 commit comments