-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (96 loc) · 2.9 KB
/
1.pipeline.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: "> Main Pipeline"
on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ '*' ]
# workflow_dispatch:
# inputs:
# type:
# description: 'Release Library'
# required: true
# default: '...no release'
# type: choice
# options:
# - '...no release'
# - major
# - minor
# - patch
jobs:
build:
permissions:
contents: read
checks: write
id-token: write
name: Build + unit tests
uses: ./.github/workflows/callable.build.yml
if: | # avoid unnecessary pipeline runs during artifact release process ('gradle release plugin')
!contains(github.event.head_commit.message, '[Gradle Release Plugin] - pre tag commit')
|| github.ref_type == 'tag'
publish_javadoc:
name: Publish javadoc (GitHub Pages)
permissions:
contents: write
uses: ./.github/workflows/callable.publish-javadoc.yml
needs: build
if: |
(
github.ref == 'refs/heads/main'
&& ( inputs.type == '' || inputs.type == '...no release' )
) || github.ref_type == 'tag'
#
# code_analysis:
# name: Code Analysis (multi)
# permissions:
# actions: read
# contents: read
# security-events: write
# uses: ./.github/workflows/callable.code-analysis.yml
# needs: build
# if: |
# github.event_name != 'workflow_dispatch'
# || inputs.type == '...no release'
#
# # integration_test:
# # name: Integration tests
# # uses: ./.github/workflows/callable.integration-test.yml
# # needs: build
#
# # gradle_release:
# # name: Create release
# # uses: ./.github/workflows/callable.gradle-release.yml
# # secrets: inherit
# # with:
# # type: ${{ inputs.type }}
# # needs: build
# # if: |
# # github.event_name == 'workflow_dispatch'
# # && inputs.type != '...no release'
#
# publish_sonatype:
# name: Publish artifact (Maven Central)
# uses: ./.github/workflows/callable.publish-central-portal.yml
# secrets: inherit
# needs: build
# if: |
# (
# github.event_name != 'workflow_dispatch'
# || inputs.type == '...no release'
# ) && (
# github.ref == 'refs/heads/main'
# || github.ref_type == 'tag'
# )
#
# publish_javadoc:
# name: Publish javadoc (GitHub Pages)
# permissions:
# contents: write
# uses: ./.github/workflows/callable.publish-javadoc.yml
# needs: build
# if: |
# (
# github.ref == 'refs/heads/main'
# && ( inputs.type == '' || inputs.type == '...no release' )
# ) || github.ref_type == 'tag'