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

Commit

Permalink
Merge build-pr.yml and build-release.yml into build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Mar 18, 2024
1 parent a342ff8 commit d98d6aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 43 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/build-pr.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ on:
- LICENSE
- CHANGELOG.md
- docs/**
pull_request:
branches: [ main ]
paths-ignore: # do not trigger for changes:
- README.md
- LICENSE
- CHANGELOG.md
- docs/**

jobs:
Deploy:
Build:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -40,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:
PUBLISHING_PROFILE_ID: ${{ secrets.PUBLISHING_PROFILE_ID }}
Expand Down

0 comments on commit d98d6aa

Please sign in to comment.