-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 1.06 KB
/
publish.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
name: "Publish"
on:
workflow_dispatch: # Manual trigger
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set up Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: "Set up Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Gradle Build and Test"
run: ./gradlew check build publish publishPlugins --stacktrace
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_PGP_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_PGP_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PGP_PASSWORD }}
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: ./build/libs/