-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.25 KB
/
release.yaml
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
39
40
41
42
43
44
45
46
47
# ---
# Github action workflow for releasing the current version of the library
# ---
name: Release Pipeline
run-name: Releasing ${{ github.ref }} to Maven Central
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate version
run: ./scripts/validate_version.rb ${{ github.ref_name }}
- name: set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt-openj9
java-version: '11'
cache: gradle
- name: Extract Secrets
env:
SECRET_PROPS: ${{ secrets.SECRET_PROPERTIES }}
run: echo "$SECRET_PROPS" >> secret.properties
- name: Publish all artifacts
env:
OSSRH_USERNAME: ${{ secrets.NEXUS_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
SIGNING_KEY: ${{ secrets.GPG_KEY }}
SIGNING_PASSWORD: ${{ secrets.GPG_PASSWORD }}
ENABLE_PUBLISHING: true
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
**/build/libs
**/build/outputs