-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1011 Bytes
/
release-sdk.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
name: Release SDK to Maven Central
on:
workflow_dispatch:
jobs:
release-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull GraphQL Operations Submodule
run: ./scripts/graphql/init.sh
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
server-id: oss-sonatype
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
settings-path: ${{ github.workspace }}
- name: Publish
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
echo "Releasing..."
cd code
gradle clean build publish -Psigning.gnupg.passphrase=$GPG_PASSPHRASE --no-daemon