diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1f4a5e..88924c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ jobs: with: java-version: '8' distribution: 'corretto' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index cc7699f..5154741 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -16,6 +16,7 @@ jobs: with: java-version: '8' distribution: 'temurin' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Generate test report diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 4f02ffc..b06e0c5 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -3,11 +3,10 @@ name: Integration Test on: pull_request: branches: [ "main" ] - paths: - - '*.py' jobs: build: + if: ${{ startsWith(github.event.head_commit.message, 'release:') }} runs-on: ubuntu-latest permissions: contents: write @@ -28,6 +27,7 @@ jobs: with: java-version: '8' distribution: 'corretto' + cache: gradle - name: Build SDK release aar file run: | chmod +x gradlew diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4abcf92..8b42d0f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,7 @@ jobs: with: java-version: '8' distribution: 'corretto' + cache: gradle - name: Config properties run: | echo "nexusUsername=${{ vars.NEXUS_USERNAME }}" >> key.properties diff --git a/.github/workflows/tag_and_release.yml b/.github/workflows/tag_and_release.yml index 7bf63ad..cfb39c8 100644 --- a/.github/workflows/tag_and_release.yml +++ b/.github/workflows/tag_and_release.yml @@ -1,7 +1,7 @@ name: Create Tag And Release on: push: - branches: [ "main" ] + branches: [ "*" ] jobs: release: @@ -26,17 +26,17 @@ jobs: git config user.name '${{ vars.USER_NAME }}' git config user.email '${{ vars.USER_EMAIL }}' git tag v$version - git push origin v$version - - name: Assemble release - run: | - chmod +x gradlew - ./gradlew assembleRelease - - name: Create GitHub release - uses: softprops/action-gh-release@v1 - with: - name: "Clickstream Android $release_version" - files: | - clickstream/build/outputs/aar/clickstream-release.aar - tag_name: "v$release_version" - prerelease: true - generate_release_notes: true \ No newline at end of file +# git push origin v$version +# - name: Assemble release +# run: | +# chmod +x gradlew +# ./gradlew assembleRelease +# - name: Create GitHub release +# uses: softprops/action-gh-release@v1 +# with: +# name: "Clickstream Android $release_version" +# files: | +# clickstream/build/outputs/aar/clickstream-release.aar +# tag_name: "v$release_version" +# prerelease: true +# generate_release_notes: true \ No newline at end of file