Run build only when pushing changes to src/**, .github/** and Gradle files.
This commit is contained in:
parent
8ee5891dba
commit
21df2cc7bf
1 changed files with 9 additions and 2 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -1,6 +1,13 @@
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- '.github/**'
|
||||||
|
- 'build.gradle.kts'
|
||||||
|
- 'gradle.properties'
|
||||||
|
- 'settings.gradle'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -33,4 +40,4 @@ jobs:
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v6.0.0
|
uses: actions/upload-artifact@v6.0.0
|
||||||
with:
|
with:
|
||||||
path: build/libs/*.jar
|
path: build/libs/*.jar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue