-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (33 loc) · 1.06 KB
/
publish-snapshot.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
32
33
34
# Trigger building on push event, and publishing snapshot package if in base repository
name: Build and Publish snapshot package
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- 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