-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgithub-maven-deploy.example-usage.yml
56 lines (49 loc) · 1.98 KB
/
github-maven-deploy.example-usage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: 2.1
description: This is a working example from the project https://github.com/bbottema/java-reflection
orbs:
github-maven-deploy: github-maven-deploy/[email protected]
mvn-build-test-command: &mvn-build-test-command
mvn-build-test-command: mvn verify -DexcludeLiveServerTests=true -Dmaven.javadoc.skip=true
mvn-deploy-command: &mvn-deploy-command
mvn-deploy-command: mvn -s .circleci/maven-release-settings.xml clean deploy -DdeployAtEnd=true -DperformRelease=true -DskipTests -Dspotbugs.skip=true
context: RELEASE_PROFILE_BBOTTEMA
workflows:
workflow:
jobs:
- github-maven-deploy/build-and-test:
<<: *mvn-build-test-command
filters:
branches:
only: master
- github-maven-deploy/approve-deploy-patch-version:
type: approval
requires:
- github-maven-deploy/build-and-test
- github-maven-deploy/approve-deploy-minor-version:
type: approval
requires:
- github-maven-deploy/build-and-test
- github-maven-deploy/approve-deploy-major-version:
type: approval
requires:
- github-maven-deploy/build-and-test
- github-maven-deploy/approve-deploy-as-is-version:
type: approval
requires:
- github-maven-deploy/build-and-test
- github-maven-deploy/deploy-patch-version:
requires:
- github-maven-deploy/approve-deploy-patch-version
<<: *mvn-deploy-command
- github-maven-deploy/deploy-minor-version:
requires:
- github-maven-deploy/approve-deploy-minor-version
<<: *mvn-deploy-command
- github-maven-deploy/deploy-major-version:
requires:
- github-maven-deploy/approve-deploy-major-version
<<: *mvn-deploy-command
- github-maven-deploy/deploy-as-is-version:
requires:
- github-maven-deploy/approve-deploy-as-is-version
<<: *mvn-deploy-command