-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (29 loc) · 1019 Bytes
/
build.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
name: Build
on:
push:
branches: "master"
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- run: ./gradlew publishGprPublicationToGitHubPackagesRepository
if: github.event_name == 'release' && github.event.action == 'created'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
if: github.event_name == 'release' && github.event.action == 'created'
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_PW: ${{ secrets.SIGN_PW }}