-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.37 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
name: Publish release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Inflate secrets
run: |
echo "signing.keyId=${{ secrets.GPG_KEY_ID }}" >> gradle.properties
echo "signing.password=${{ secrets.GPG_PASSWORD }}" >> gradle.properties
echo "signing.secretKeyRingFile=${{ github.workspace }}/webasyst.gpg" >> gradle.properties
echo "${{ secrets.GPG_KEYRING }}" | base64 --decode --ignore-garbage > webasyst.gpg
cat gradle.properties
- name: Release
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
run: ./gradlew publish --no-daemon --no-parallel