From 1854dcc2b99b3e15719e3ccab2e865721b5675df Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Wed, 1 Dec 2021 22:54:25 +0100 Subject: [PATCH] Sup `Upload simple jar` and no ci on .md or docs Mod: - Suppress `Upload simple jar` on artifact - No CI on `.md` or `docs` Ref.: - https://github.com/plantuml/plantuml/discussions/653#discussioncomment-1684866 - https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-ignoring-paths - https://github.blog/changelog/2019-09-30-github-actions-event-filtering-updates/ --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6c0b8f20..23616e1be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,15 @@ on: create: pull_request: types: [ opened, synchronize, reopened ] + paths-ignore: + - '*.md' + - 'docs/**' push: branches: - master + paths-ignore: + - '*.md' + - 'docs/**' workflow_dispatch: defaults: @@ -113,16 +119,6 @@ jobs: name: ${{ github.run_number }}-jars path: target/*.jar - - name: Upload jar artifact (only simple jar - without javadoc or sources) - if: ${{ matrix.release_from_this_build }} - uses: actions/upload-artifact@v2 - with: - name: plantuml-jar - path: | - target/*.jar - !target/*-javadoc.jar - !target/*-sources.jar - release: needs: [ workflow_config, build ] if: needs.workflow_config.outputs.do_release == 'true' || needs.workflow_config.outputs.do_snapshot_release == 'true'