Skip to content

Merge branch 'master' into jdk17 #10

Merge branch 'master' into jdk17

Merge branch 'master' into jdk17 #10

# Trigger building on push event, and publishing snapshot package if in base repository
name: Build and Publish snapshot package
on:
workflow_dispatch:
push:
branches:
- jdk17
paths-ignore:
- '.github/**'
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set up Node JS
uses: actions/setup-node@v2
with:
node-version: 14
- name: Build with Gradle
run: ./gradlew build
- name: Publish snapshot package
if: github.repository == 'bkdevops-projects/devops-framework'
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publish