diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f103be..9ae04d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ name: Build on: push: - branches: [ "main", "dev" ] + branches: [ "dev" ] pull_request: branches: [ "main", "dev" ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4006960..df16d57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,6 @@ name: Release on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] @@ -11,41 +9,15 @@ permissions: contents: read jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'zulu' - cache: maven - - name: Build with Maven - run: mvn package - - name: Upload jar - uses: actions/upload-artifact@v4 - with: - name: maven-build-jar - path: target/aerospike-circuit-breaker-*-with-dependencies.jar release: runs-on: ubuntu-latest - needs: - - build permissions: contents: write steps: - uses: actions/checkout@v4 - - name: Download jar - uses: actions/download-artifact@v4 - with: - name: maven-build-jar - path: target/aerospike-circuit-breaker-*-with-dependencies.jar - name: Release to Github uses: ncipollo/release-action@v1 with: - artifacts: "target/aerospike-circuit-breaker-*-with-dependencies.jar" - artifactContentType: "application/java-archive" generateReleaseNotes: true commit: main tag: ${{ github.sha }}