Skip to content

Commit 70a7ef3

Browse files
committed
chore: use jenkins infra maven cd reusable workflow
Signed-off-by: Joseph Petersen <[email protected]>
1 parent 831b1cd commit 70a7ef3

File tree

1 file changed

+5
-50
lines changed

1 file changed

+5
-50
lines changed

.github/workflows/cd.yaml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,54 +8,9 @@ on:
88
- completed
99

1010
jobs:
11-
validate:
12-
runs-on: ubuntu-latest
13-
outputs:
14-
should_release: ${{ steps.verify-ci-status.outputs.result == 'success' && steps.interesting-categories.outputs.interesting == 'true' }}
15-
steps:
16-
- name: Verify CI status
17-
uses: jenkins-infra/[email protected]
18-
id: verify-ci-status
19-
with:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
output_result: true
11+
maven-cd:
12+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
13+
secrets:
14+
MAVEN_USERNAME: `${{ secrets.MAVEN_USERNAME }}
15+
MAVEN_TOKEN: `${{ secrets.MAVEN_TOKEN }}
2216

23-
- name: Release Drafter
24-
uses: release-drafter/release-drafter@v5
25-
if: steps.verify-ci-status.outputs.result == 'success'
26-
with:
27-
name: next
28-
tag: next
29-
version: next
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
33-
- name: Check interesting categories
34-
uses: jenkins-infra/[email protected]
35-
id: interesting-categories
36-
if: steps.verify-ci-status.outputs.result == 'success'
37-
with:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
40-
release:
41-
runs-on: ubuntu-latest
42-
needs: [validate]
43-
if: needs.validate.outputs.should_release == 'true'
44-
steps:
45-
- name: Check out
46-
uses: actions/checkout@v3
47-
with:
48-
fetch-depth: 0
49-
50-
- name: Set up JDK 8
51-
uses: actions/setup-java@v3
52-
with:
53-
distribution: temurin
54-
java-version: 8
55-
56-
- name: Release
57-
uses: jenkins-infra/[email protected]
58-
with:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
61-
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

0 commit comments

Comments
 (0)