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:
parent
f3a27b00ab
commit
b9a27f0440
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -76,8 +76,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
java_version: [ 8, 11, 17 ]
|
java_version: [ 8, 17 ]
|
||||||
os: [ ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022 ]
|
os: [ ubuntu-latest, windows-latest ]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
@ -151,12 +151,14 @@ jobs:
|
|||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
|
||||||
native_images:
|
native_images:
|
||||||
|
if: needs.workflow_config.outputs.do_release == 'true'
|
||||||
needs: build_artifacts
|
needs: build_artifacts
|
||||||
uses: ./.github/workflows/native-image.yml
|
uses: ./.github/workflows/native-image.yml
|
||||||
with:
|
with:
|
||||||
release-version: ${{ needs.build_artifacts.outputs.release_version }}
|
release-version: ${{ needs.build_artifacts.outputs.release_version }}
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
|
if: needs.workflow_config.outputs.do_release == 'true'
|
||||||
needs: [ workflow_config, build_artifacts, native_images]
|
needs: [ workflow_config, build_artifacts, native_images]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user