Skip to content

Instantly share code, notes, and snippets.

@entzik
Created November 5, 2019 14:09
Show Gist options
  • Save entzik/91a8024a37b3d1368a2645e20ece3847 to your computer and use it in GitHub Desktop.
Save entzik/91a8024a37b3d1368a2645e20ece3847 to your computer and use it in GitHub Desktop.
HitHub Action file
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build and Publish
run: ./gradlew -PMAVEN_UPLOAD_USER=${{ secrets.SONATYPE_USER }} -PMAVEN_UPLOAD_PWD=${{ secrets.SONATYPE_PASSWORD }} -PPGP_SIGNING_KEY="${{ secrets.PGP_SIGNING_KEY }}" -PPGP_SIGNING_PASSWORD="${{ secrets.PGP_SIGNING_PASSWORD }}" build publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment