mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-26 06:46:45 +00:00
Minor syntax simplifications in ci.yml
This commit is contained in:
parent
0646c23a18
commit
33cbfdd951
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -42,9 +42,7 @@ jobs:
|
|||||||
# Do a release when a git tag starting with 'v' has been created by a suitable user.
|
# Do a release when a git tag starting with 'v' has been created by a suitable user.
|
||||||
# (We match against github.repository_owner as a kludge so that forked repos can release themselves when testing the workflow)
|
# (We match against github.repository_owner as a kludge so that forked repos can release themselves when testing the workflow)
|
||||||
|
|
||||||
if [[ "${GITHUB_EVENT_NAME}" == "create" && \
|
if [[ "${GITHUB_EVENT_NAME}" == "create" && "${REF_TYPE}" == "tag" && "${REF}" == v* && \
|
||||||
"${REF_TYPE}" == "tag" && \
|
|
||||||
"${REF}" == v* && \
|
|
||||||
( "${ACTOR}" == "arnaudroques" || "${ACTOR}" == "${GITHUB_REPOSITORY_OWNER}" ) \
|
( "${ACTOR}" == "arnaudroques" || "${ACTOR}" == "${GITHUB_REPOSITORY_OWNER}" ) \
|
||||||
]]; then
|
]]; then
|
||||||
echo "📣 This run will release '${REF}'"
|
echo "📣 This run will release '${REF}'"
|
||||||
@ -88,8 +86,7 @@ jobs:
|
|||||||
if: needs.workflow_config.outputs.do_release == 'true'
|
if: needs.workflow_config.outputs.do_release == 'true'
|
||||||
env:
|
env:
|
||||||
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
||||||
run: |
|
run: mvn --batch-mode versions:set "-DnewVersion=${POM_VERSION}"
|
||||||
mvn --batch-mode versions:set "-DnewVersion=${POM_VERSION}"
|
|
||||||
|
|
||||||
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
||||||
- name: Compile
|
- name: Compile
|
||||||
@ -99,11 +96,11 @@ jobs:
|
|||||||
run: mvn --batch-mode test
|
run: mvn --batch-mode test
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
if: ${{ matrix.release_from_this_build }}
|
if: matrix.release_from_this_build
|
||||||
run: mvn --batch-mode -Dmaven.test.skip=true package
|
run: mvn --batch-mode -Dmaven.test.skip=true package
|
||||||
|
|
||||||
- name: Upload jar artifacts
|
- name: Upload jar artifacts
|
||||||
if: ${{ matrix.release_from_this_build }}
|
if: matrix.release_from_this_build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
# Using github.run_number here to reduce confusion when downloading & comparing artifacts from several builds
|
# Using github.run_number here to reduce confusion when downloading & comparing artifacts from several builds
|
||||||
|
Loading…
Reference in New Issue
Block a user