Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Merge build-pr.yml and build-release.yml into build.yml #101

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/build-pr.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish
name: Build

on:
push:
Expand All @@ -9,6 +9,13 @@ on:
- LICENSE
- CHANGELOG.md
- docs/**
pull_request:
branches: [ main ]
paths-ignore: # do not trigger for changes:
- README.md
- LICENSE
- CHANGELOG.md
- docs/**

jobs:
deploy:
Expand All @@ -30,7 +37,6 @@ jobs:
with:
useConfigFile: true

- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
Expand All @@ -41,7 +47,12 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
if: ${{ github.event_name == 'pull_request' }}
run: ./gradlew build --stacktrace

- name: Publish To maven central
if: ${{ startsWith(github.ref, 'refs/tags') }}
run: ./gradlew publish --max-workers 1 closeAndReleaseStagingRepository --stacktrace
env:
NEXUS_PROFILE_ID: ${{ secrets.NEXUS_PROFILE_ID }}
Expand All @@ -50,4 +61,4 @@ jobs:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
VERSION_NAME: ${{ steps.gitversion.outputs.semVer }}
VERSION_NAME: ${{ steps.gitversion.outputs.semVer }}
Loading