-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (67 loc) · 2.82 KB
/
main.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
name: Gradle Build
on:
push:
tags: null
jobs:
build:
# OMG such a kludge. Need to split these projects apart asap!
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 2 }
- name: Set up Java
uses: actions/setup-java@v4
with: { distribution: 'temurin', java-version: '21' }
- name: Setup Gradle 8.2
uses: gradle/actions/setup-gradle@v4
with: { gradle-version: 8.2 }
- name: Determine modified projects
id: determine-modifications
run: |
echo "Checking for modified files..."
MODIFIED_FILES=$(git diff --name-only HEAD^ HEAD)
echo "Modified files: $MODIFIED_FILES"
if echo "$MODIFIED_FILES" | grep -q -e '^bl-codegen/' -e '^bl-gradle-plugin/' -e '^bl-k8s-rt/'; then
echo "BL_COMMON_PROJECTS_MODIFIED=true" >> $GITHUB_ENV
fi
if echo "$MODIFIED_FILES" | grep -q -e '^bl-k8s129/'; then
echo "BL_K8S129_MODIFIED=true" >> $GITHUB_ENV
fi
if echo "$MODIFIED_FILES" | grep -q -e '^bl-k8s130/'; then
echo "BL_K8S130_MODIFIED=true" >> $GITHUB_ENV
fi
if echo "$MODIFIED_FILES" | grep -q -e '^bl-k8s131/'; then
echo "BL_K8S131_MODIFIED=true" >> $GITHUB_ENV
fi
- name: Build bl-k8s-rt
if: env.BL_COMMON_PROJECTS_MODIFIED == 'true'
run: gradle :bl-k8s-rt:build
env:
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
MAVEN_SIGNING_PRV: ${{secrets.MAVEN_SIGNING_PRV}}
PLUGIN_ORGCONFIG: https://vacco-oss.s3.us-east-2.amazonaws.com/vacco-oss.json
- name: Build bl-k8s129
if: env.BL_K8S129_MODIFIED == 'true'
run: gradle :bl-k8s129:build
env:
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
MAVEN_SIGNING_PRV: ${{secrets.MAVEN_SIGNING_PRV}}
PLUGIN_ORGCONFIG: https://vacco-oss.s3.us-east-2.amazonaws.com/vacco-oss.json
- name: Build bl-k8s130
if: env.BL_K8S130_MODIFIED == 'true'
run: gradle :bl-k8s130:build
env:
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
MAVEN_SIGNING_PRV: ${{secrets.MAVEN_SIGNING_PRV}}
PLUGIN_ORGCONFIG: https://vacco-oss.s3.us-east-2.amazonaws.com/vacco-oss.json
- name: Build bl-k8s131
if: env.BL_K8S131_MODIFIED == 'true'
run: gradle :bl-k8s131:build
env:
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
MAVEN_SIGNING_PRV: ${{secrets.MAVEN_SIGNING_PRV}}
PLUGIN_ORGCONFIG: https://vacco-oss.s3.us-east-2.amazonaws.com/vacco-oss.json