1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-09-28 23:19:01 +00:00

chore: temporary remove tests, remove gradle publish for snapshot

This commit is contained in:
Arnaud Roques 2023-05-12 13:58:24 +02:00
parent bb33824e87
commit f43aa3b928

View File

@ -26,6 +26,7 @@ jobs:
do_release: ${{ steps.config.outputs.do_release }}
do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }}
pom_version: ${{ steps.config.outputs.pom_version }}
do_test: ${{ steps.config.outputs.do_test }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
@ -68,10 +69,12 @@ jobs:
else
echo "This run will NOT make a release"
fi
echo "do_test=false" >> $GITHUB_OUTPUT
# We run the tests on many OS / Java combinations but also the Compile step because some users build
# their own jars from source, so it is good for CI to check that is working on all combinations.
test:
if: needs.workflow_config.outputs.do_test == 'true'
needs: workflow_config
strategy:
fail-fast: false
@ -123,7 +126,9 @@ jobs:
if: env.POM_VERSION
env:
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
run: |
sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
cat gradle.properties
- name: Build artifacts
run: |
gradle clean build \
@ -187,7 +192,7 @@ jobs:
build/libs/*
build/publications/maven/*
- name: Create snapshot release
- name: Create snapshot
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
env:
RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }}
@ -199,9 +204,8 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
run: |
.github/scripts/release-snapshot.sh
gradle publish
- name: Create release in GitHub
- name: Create release in GitHub and OSSRH
if: needs.workflow_config.outputs.do_release == 'true'
env:
RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }}
@ -216,7 +220,7 @@ jobs:
.github/scripts/release.sh
gradle publish
push_to_registry:
push_to_docker_registry:
needs: [ workflow_config, upload ]
if: needs.workflow_config.outputs.do_release == 'true'
runs-on: ubuntu-latest