New way to make patch releases (#788)

* New way to make patch releases

* Simplify release
This commit is contained in:
Nikita Salnikov-Tarnovski 2020-07-25 22:36:19 +03:00 committed by GitHub
parent 9f3b087227
commit 425ce53853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 77 deletions

View File

@ -171,25 +171,6 @@ jobs:
command: ./gradlew -Prelease.useLastTag=true final
no_output_timeout: 6h
patch_release:
<<: *defaults
steps:
- checkout
- run: |
if [[ $(git tag --points-at HEAD | grep "^v") ]]; then
echo "Don't make patch release on commit which already has version tag"
circleci-agent step halt
fi
- attach_workspace:
at: .
- restore_cache:
<<: *cache_keys
- run: ./gradlew -Prelease.scope=patch final
workflows:
build_test_deploy:
jobs:
@ -254,61 +235,5 @@ workflows:
branches:
ignore: /.*/
tags:
# Only for major and minor releases
only: /^v.*\.0$/
patch_release:
jobs:
- build:
filters:
branches:
only: /\d+\.\d+\.x$/
- default_test_job:
requires:
- build
prefixTestTask: true
name: test_<< matrix.testTask >>
matrix:
parameters:
testTask: ["7", "8", "14"]
filters:
branches:
only: /\d+\.\d+\.x$/
- default_test_job:
requires:
- build
name: test_11
testTask: test jacocoTestReport jacocoTestCoverageVerification
filters:
branches:
only: /\d+\.\d+\.x$/
- default_test_job:
requires:
- build
name: test_latest
testTask: latestDepTest
filters:
branches:
only: /\d+\.\d+\.x$/
- muzzle:
requires:
- build
filters:
branches:
only: /\d+\.\d+\.x$/
- patch_release:
requires:
- test_7
- test_8
- test_11
- test_14
- test_latest
- muzzle
filters:
branches:
only: /\d+\.\d+\.x$/
# As long as we don't have support branches, we release all tags in the same manner
only: /^v.*$/