-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 2.09 KB
/
build.yaml
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
name: 'kotlin-cdk-extensions'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
permissions:
contents: 'write'
env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: 'false'
ORG_GRADLE_PROJECT_signingInMemoryKey: '${{ secrets.SIGNING_KEY }}'
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: '${{ secrets.SIGNING_PASSWORD }}'
ORG_GRADLE_PROJECT_mavenCentralUsername: '${{ secrets.SONATYPEUSERNAME }}'
ORG_GRADLE_PROJECT_mavenCentralPassword: '${{ secrets.SONATYPEPASSWORD }}'
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
# https://github.com/hmarr/debug-action
- uses: 'hmarr/debug-action@cd1afbd7852b7ad7b1b7a9a1b03efebd3b0a1820' # v3.0.0
# https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions
- uses: 'zgosalvez/github-actions-ensure-sha-pinned-actions@3c16e895bb662b4d7e284f032cbe8835a57773cc' # v3.0.11
# https://github.com/actions/checkout
- name: 'checkout'
uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # v4.1.7
# https://github.com/actions/setup-java
- name: 'Set up JDK'
uses: 'actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018' # v4.2.2
with:
java-version: 21
distribution: "temurin"
# https://github.com/gradle/actions/tree/main/setup-gradle
- name: 'Set up Gradle'
uses: 'gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582' # v4
with:
gradle-version: 'wrapper'
gradle-home-cache-cleanup: true
validate-wrappers: true
# https://github.com/gradle/actions/tree/main/dependency-submission
- name: "Generate and submit dependency graph"
uses: "gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582" # v4
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: "^:(build-logic|buildSrc|.*[Tt]test.*)"
DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: ".*[Tt]est.*Classpath"
- name: 'Build'
run: './gradlew build --info --scan --stacktrace'
- name: 'Publish'
run: './gradlew publishAllPublicationsToMavenCentralRepository --info --stacktrace --no-configuration-cache'