From e1590f019b8c00df9ab40bf4e0e0256bb09a9708 Mon Sep 17 00:00:00 2001 From: Oguzhan Soykan Date: Mon, 13 May 2024 10:45:19 +0200 Subject: [PATCH] ci --- .github/workflows/gradle-publish-snapshot.yml | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle-publish-snapshot.yml b/.github/workflows/gradle-publish-snapshot.yml index 913f415e..1ef144e1 100644 --- a/.github/workflows/gradle-publish-snapshot.yml +++ b/.github/workflows/gradle-publish-snapshot.yml @@ -1,12 +1,24 @@ name: Publish to Snapshot Maven - -on: - push: - branches: - - main env: SNAPSHOT: true - + PATH_EXAMPLES: 'examples/**' + PATH_LIB: 'lib/**' + PATH_STARTERS: 'starters/**' + PATH_GRADLE: 'gradle/**' + PATH_GRADLE_KTS: 'build.gradle.kts' + PATH_SETTINGS_KTS: 'settings.gradle.kts' + PATH_BUILD_SRC: 'buildSrc/**' +on: + push: + branches: [ main ] + paths: + - ${{ env.PATH_EXAMPLES }} + - ${{ env.PATH_LIB }} + - ${{ env.PATH_STARTERS }} + - ${{ env.PATH_GRADLE }} + - ${{ env.PATH_GRADLE_KTS }} + - ${{ env.PATH_SETTINGS_KTS }} + - ${{ env.PATH_BUILD_SRC }} jobs: publish: runs-on: ubuntu-latest