forked from Unleash/unleash-spring-boot-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 935 Bytes
/
deploy-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
31
name: Build and test
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags') && !contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: 'maven'
server-id: 'osrrh'
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
- name: Release to maven central
run: |
mvn deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}