forked from opentable/otj-pg-embedded
-
Notifications
You must be signed in to change notification settings - Fork 52
35 lines (35 loc) · 1.06 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
name: Release
on:
milestone:
types: [closed]
jobs:
build:
name: Release ${{ github.event.milestone.title }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
- name: Set up Git
run: |
git config user.name "Zonky Bot"
git config user.email "[email protected]"
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
server-id: ossrh
server-username: MAVEN_USER
server-password: MAVEN_PASS
gpg-private-key: ${{ secrets.SIGNING_CERT }}
gpg-passphrase: SIGNING_PASS
- name: Release with Maven
env:
RELEASE_VERSION: ${{ github.event.milestone.title }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
SIGNING_PASS: ${{ secrets.SIGNING_PASS }}
run: mvn -B release:prepare release:perform -DreleaseVersion=$RELEASE_VERSION