diff --git a/.circleci/config.yml b/.circleci/config.yml index dc2f6432..928b180d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,19 @@ +aliases: + # Uses the same regex as release-tags-job + release-tags-workflow: &release-tags-workflow + when: + and: + - matches: { pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+(?!.*-SNAPSHOT).*$", value: << pipeline.git.tag >> } + - not: + equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] + # Uses the same regex as release-tags-workflow + release-tags-job: &release-tags-job + filters: + tags: + only: /^[0-9]+\.[0-9]+\.[0-9]+(?!.*-SNAPSHOT).*$/ + branches: + ignore: /.*/ + version: 2.1 orbs: @@ -259,14 +275,12 @@ workflows: # to Maven Central and creates a GitHub release for it. The release train has # now completed its journey. on-release-tag: - when: - and: - - matches: { pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+(?!.*-SNAPSHOT).*$", value: << pipeline.git.tag >> } - - not: - equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] + <<: *release-tags-workflow jobs: - publish: snapshot: false context: maven-central-publishing + <<: *release-tags-job - create-github-release: context: github-bot-public + <<: *release-tags-job diff --git a/fastlane/Fastfile b/fastlane/Fastfile index b4f72d48..7669f2df 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -205,5 +205,8 @@ def publish ENV["ORG_GRADLE_PROJECT_mavenCentralPassword"] = ENV["SONATYPE_NEXUS_TOKEN_PASSWORD"] ENV["ORG_GRADLE_PROJECT_signingInMemoryKey"] = ENV["SIGNING_GPG_IN_MEMORY"] ENV["ORG_GRADLE_PROJECT_signingInMemoryKeyPassword"] = ENV["GPG_SIGNING_KEY_PW_NEW"] - gradle(task: "publishAllPublicationsToMavenCentralRepository") + gradle( + task: "publishAllPublicationsToMavenCentralRepository", + flags: "--no-configuration-cache" + ) end