-
Notifications
You must be signed in to change notification settings - Fork 43
33 lines (27 loc) · 874 Bytes
/
publish.yml
File metadata and controls
33 lines (27 loc) · 874 Bytes
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
# Manual / tag-driven publish to Maven Central (requires signing + Nexus credentials).
name: Publish
on:
workflow_dispatch:
inputs:
dry_run:
description: "If true, only build plugin (no upload)"
required: false
default: "true"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.PAT }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build plugin JAR
run: ./gradlew :plugin:jar --no-daemon
# Wire signing + publish when secrets are configured:
# ./gradlew :plugin:publishPluginPublicationToSonatypeRepository -PnexusUsername=... -PnexusPassword=...