Skip to content

Commit

Permalink
chore: add build job for pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dhommen committed Jan 25, 2024
1 parent 8910eef commit 8f1db23
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Publish package to GitHub Packages
on:
push:
branches: ["main"]
paths: ["logging-house-client"]
paths: ["logging-house-client/**/*"]
pull_reqeust:
branches: ["main"]

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -17,7 +20,13 @@ jobs:
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build package
if: ${{ github.ref != 'refs/heads/main' }}
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: build
- name: Publish package
if: ${{ github.ref == 'refs/heads/main' }}
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: publish
Expand Down

0 comments on commit 8f1db23

Please sign in to comment.