Skip to content

Commit

Permalink
filter build workflow so it doesn't rebuild on non-src changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Aug 21, 2024
1 parent fabe911 commit 3f9666a
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/build-on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@ name: Build

on:
push:
paths:
- lib/src/**
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
build:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'

- name: Gradle Build
run: ./gradlew clean build
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Gradle Build
run: ./gradlew clean build
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 3f9666a

Please sign in to comment.