-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (40 loc) · 1.11 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
name: Gradle Plugin CI
on:
push:
branches:
- main
paths:
- gradle/libs.versions.toml
- gradle-plugin
pull_request:
paths:
- gradle-plugin/**
types:
- opened
- synchronize
workflow_dispatch:
env:
BUILD_PLUGIN_CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: 22
- uses: gradle/actions/setup-gradle@v4
- name: Test with Gradle
run: ./gradlew gradle-plugin:check
- name: Login to Gradle Plugin Portal
if: "github.event_name == 'push' || github.event_name == 'workflow_dispatch'"
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' || github.event_name == 'workflow_dispatch'"
run: ./gradlew :gradle-plugin:publishPlugins