1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 06:46:45 +00:00

chore: only build native and publish artefacts on release

[skip ci]
This commit is contained in:
Eric Vantillard 2023-04-04 15:20:02 +02:00
parent f3a27b00ab
commit b9a27f0440
2 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,8 @@ jobs:
strategy:
fail-fast: false
matrix:
java_version: [ 8, 11, 17 ]
os: [ ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022 ]
java_version: [ 8, 17 ]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
@ -151,12 +151,14 @@ jobs:
enableCrossOsArchive: true
native_images:
if: needs.workflow_config.outputs.do_release == 'true'
needs: build_artifacts
uses: ./.github/workflows/native-image.yml
with:
release-version: ${{ needs.build_artifacts.outputs.release_version }}
upload:
if: needs.workflow_config.outputs.do_release == 'true'
needs: [ workflow_config, build_artifacts, native_images]
runs-on: ubuntu-latest
steps: