-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 986 Bytes
/
release.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
name: Publish package to the Maven Central Repository
on:
push:
tags:
- '*'
pull_request:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
env:
CENTRAL_RELEASE_MAVEN_REPOSITORY_URL: ${{ secrets.CENTRAL_RELEASE_MAVEN_REPOSITORY_URL }}
CENTRAL_MAVEN_REPOSITORY_USERNAME: ${{ secrets.CENTRAL_MAVEN_REPOSITORY_USERNAME }}
CENTRAL_MAVEN_REPOSITORY_PASSWORD: ${{ secrets.CENTRAL_MAVEN_REPOSITORY_PASSWORD }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew raygun-spring-boot-starter:publishMavenPublicationToCentralReleaseRepository