diff --git a/.github/workflows/on_push_build.yml b/.github/workflows/on_push_build.yml index 747d107..c4787de 100644 --- a/.github/workflows/on_push_build.yml +++ b/.github/workflows/on_push_build.yml @@ -1,17 +1,14 @@ -name: Build & Deploy (Master & Develop) +name: Build & Deploy (Master) on: push: branches: - master - - develop - permissions: - contents: read - + contents: write + jobs: build: - runs-on: ubuntu-latest steps: @@ -39,11 +36,7 @@ jobs: - name: Build & Deploy run: | - if [[ "${{ github.ref_name }}" == "master" ]]; then - mvn clean deploy -s settings.xml --batch-mode -P release -Dchangelist= - else - mvn clean deploy -s settings.xml --batch-mode -P snapshot -Dchangelist=-SNAPSHOT - fi + mvn clean deploy -s settings.xml --batch-mode -P release -Dchangelist=- env: CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }} - CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} \ No newline at end of file + CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} diff --git a/.github/workflows/on_push_dev.yml b/.github/workflows/on_push_dev.yml new file mode 100644 index 0000000..4e7b07d --- /dev/null +++ b/.github/workflows/on_push_dev.yml @@ -0,0 +1,36 @@ +name: Build & Deploy (Develop) + +on: + push: + branches: + - develop + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + - name: Cache local Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-maven- + + - name: Build & Deploy + run: | + mvn clean deploy -s settings.xml --batch-mode -P snapshot -Dchangelist=-SNAPSHOT \ No newline at end of file diff --git a/README.md b/README.md index 9ef9745..f124acb 100644 --- a/README.md +++ b/README.md @@ -377,14 +377,14 @@ Alternatively you can pull it from the central Maven repositories: com.ebay.ejmask ejmask-bom - 2.0.3 + 2.0.4-RELEASE ``` ### Using in your Gradle Project. ```groovy -compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '2.0.3' +compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '2.0.4-RELEASE' ``` ## Roadmap diff --git a/pom.xml b/pom.xml index 489bfd3..c9b2869 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ 17 17 2.0.4 - -SNAPSHOT + -RELEASE