forked from graphql-java/graphql-java
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 887 Bytes
/
release.yml
File metadata and controls
27 lines (25 loc) · 887 Bytes
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
name: Manual Release Build
# Release builds
on:
workflow_dispatch:
inputs:
version:
description: 'the version to be released'
required: true
jobs:
buildAndPublish:
runs-on: ubuntu-latest
env:
MAVEN_CENTRAL_PGP_KEY: ${{ secrets.MAVEN_CENTRAL_PGP_KEY }}
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
RELEASE_VERSION: ${{ github.event.inputs.version }}
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11.0.17'
- name: build test and publish
run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace