Skip to content

Merge pull request #28 from pixee/release/v1.1.3 #34

Merge pull request #28 from pixee/release/v1.1.3

Merge pull request #28 from pixee/release/v1.1.3 #34

Workflow file for this run

name: Create Release on Semantic Version Tag
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Set up JDKs 8, 11, 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
8
17
11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build
- name: "Create release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
build/libs/java-security-*.jar
- name: "Publish to Maven Central"
run: ./gradlew publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }}