forked from openapi-processor/openapi-processor-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 931 Bytes
/
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
38
39
40
41
name: release
on:
release:
types: [published]
jobs:
publish:
name: publish release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up jdk
uses: actions/setup-java@v1
with:
java-version: 11
- name: publish release
env:
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_PWD: ${{ secrets.SIGN_PWD }}
run: |
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
./gradlew --stop