-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 970 Bytes
/
publish.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
name: Publish
on:
release:
types:
- published
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
jobs:
publish:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
- uses: browser-actions/setup-chrome@v1
id: setup-chrome
- run: ./gradlew check
env:
CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}
- name: publish
run: >
./gradlew
--no-parallel
-PVERSION_NAME='${{ github.ref_name }}'
-PsigningInMemoryKey='${{ secrets.SIGNING_KEY }}'
-PsigningInMemoryKeyPassword='${{ secrets.SIGNING_PASSWORD }}'
-PmavenCentralUsername='${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}'
-PmavenCentralPassword='${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}'
publish