-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (35 loc) · 1.14 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
39
40
41
name: Release
on:
push:
release:
types: [ published ]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
cache: gradle
- name: Build artifacts
uses: gradle/gradle-build-action@v2
with:
arguments: |
publishAllPublicationsToCentralRepository
publishAllPublicationsToReleaseDirRepository
--no-daemon
-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=2G
-PmavenDeployUrl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-PmavenDeployUser=${{ secrets.MAVEN_CENTRAL_USER }}
-PmavenDeployPassword=${{ secrets.MAVEN_CENTRAL_PASSWORD }}
-PmavenSignGpgKey="${{ secrets.MAVEN_SIGN_GPG_KEY }}"
-PmavenSignGpgPassword=${{ secrets.MAVEN_SIGN_GPG_PASSWORD }}
- name: Upload release artifacts
uses: softprops/action-gh-release@v1
with:
files: |
./**/build/release/**/ksmt-*.jar