-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (46 loc) · 1.2 KB
/
gradle_plugin_ci.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
name: Gradle Plugin CI
on:
push:
branches:
- main
paths:
- gradle/libs.versions.toml
pull_request:
paths:
- gradle-plugin/**
types:
- opened
- synchronize
env:
BUILD_PLUGIN_CI: true
jobs:
gradleValidation:
name: Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
build:
runs-on: ubuntu-latest
needs: gradleValidation
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 19
- name: Test with Gradle
run: ./gradlew gradle-plugin:classes
- name: Login to Gradle Plugin Portal
if: "github.event_name == 'push'"
env:
GRADLE_CONFIG: ${{ secrets.GRADLE_CONFIG }}
run: echo "$GRADLE_CONFIG" > ~/.gradle/gradle.properties
- name: Update dependency list
run: ./rebuild-plugin-dependency-list.sh
- name: Gradle Publish
if: "github.event_name == 'push'"
run: ./gradlew :gradle-plugin:publishPlugins