1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-23 03:19:06 +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_release: ${{ steps.config.outputs.do_release }}
do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }} do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }}
pom_version: ${{ steps.config.outputs.pom_version }} pom_version: ${{ steps.config.outputs.pom_version }}
do_test: ${{ steps.config.outputs.do_test }}
steps: steps:
- name: Checkout the repository - name: Checkout the repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -68,10 +69,12 @@ jobs:
else else
echo "This run will NOT make a release" echo "This run will NOT make a release"
fi 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 # 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. # their own jars from source, so it is good for CI to check that is working on all combinations.
test: test:
if: needs.workflow_config.outputs.do_test == 'true'
needs: workflow_config needs: workflow_config
strategy: strategy:
fail-fast: false fail-fast: false
@ -123,7 +126,9 @@ jobs:
if: env.POM_VERSION if: env.POM_VERSION
env: env:
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }} 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 - name: Build artifacts
run: | run: |
gradle clean build \ gradle clean build \
@ -187,7 +192,7 @@ jobs:
build/libs/* build/libs/*
build/publications/maven/* build/publications/maven/*
- name: Create snapshot release - name: Create snapshot
if: needs.workflow_config.outputs.do_snapshot_release == 'true' if: needs.workflow_config.outputs.do_snapshot_release == 'true'
env: env:
RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }}
@ -199,9 +204,8 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
run: | run: |
.github/scripts/release-snapshot.sh .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' if: needs.workflow_config.outputs.do_release == 'true'
env: env:
RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ needs.build_artifacts.outputs.RELEASE_VERSION }}
@ -216,7 +220,7 @@ jobs:
.github/scripts/release.sh .github/scripts/release.sh
gradle publish gradle publish
push_to_registry: push_to_docker_registry:
needs: [ workflow_config, upload ] needs: [ workflow_config, upload ]
if: needs.workflow_config.outputs.do_release == 'true' if: needs.workflow_config.outputs.do_release == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest