-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 1.37 KB
/
Copy pathdeploy.yml
File metadata and controls
36 lines (33 loc) · 1.37 KB
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: Deployment
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+*' ]
jobs:
publish:
if: github.repository == 'mv-gh/lemmybackwardscompatibleapi' && startsWith(github.ref, 'refs/tags')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
environment: publish
env:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
steps:
- uses: actions/checkout@v4
- uses: SimonMarquis/ci-gradle-properties-action@v1
with:
path: .github/gradle.properties
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: build
run: ./gradlew build --no-daemon
- name: publish
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache --no-daemon --stacktrace