-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (38 loc) · 1.62 KB
/
gradle.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build jar
- name: Nexus Repository Publisher for GitHub Actions
uses: sonatype-nexus-community/nexus-repo-github-action@1.0.0
with:
# Nexus Repository Server URL
serverUrl: https://oss.sonatype.org/content/repositories/snapshots
# Username to connect to Nexus Repo to publish components
username: ${{ secrets.SONATYPE_USER }}
# Password to connect to Nexus Repo to publish components
password: ${{ secrets.SONATYPE_PASSWORD }}
# Component format e.g. maven2
format: maven2
# Name of target repository on Nexus Repo e.g. maven-releases
repository: maven-snapshots
# Component coordinates in key=value format. e.g. groupId=com.example artifactId=app version=1.0.0
coordinates: groupId=com.github.applicaai artifactId=spring-boot-starter-temporal version=0.0.1-SNAPSHOT
# Component assets in key=value format. e.g. extension=jar
assets: extension=jar
# File to publish
filename: ./build/libs/spring-boot-starter-temporal-0.0.1-SNAPSHOT.jar