-
Notifications
You must be signed in to change notification settings - Fork 168
38 lines (34 loc) · 1.07 KB
/
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
32
33
34
35
36
37
38
name: Release Build
run-name: Create Release (${{ inputs.version }})
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Build
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
mvn -B -ntp deploy scm:tag -P release -Drevision=${{ github.event.inputs.version }}