-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 1001 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
28
29
30
name: Release
on:
push:
branches: [ release ]
jobs:
release:
if: github.repository == 'spring-projects-experimental/r2dbc-micrometer-spring-boot'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Validation
run: ./mvnw -B enforcer:enforce -Drules=requireReleaseDeps,requireReleaseVersion
- name: Publish package
run: ./mvnw -B javadoc:jar source:jar deploy -DskipTests=true -Pgithub-ossrh
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}