mirror of
				https://github.com/AdrianKuta/Expandable-RecyclerView.git
				synced 2025-10-31 00:43:39 +01:00 
			
		
		
		
	feat: Upgrade to build gradle 7.0.2
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| name: Build | ||||
|  | ||||
| on: pull_request | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     name: Check project build | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Check out code | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Set up JDK 11 | ||||
|         uses: actions/setup-java@v2 | ||||
|         with: | ||||
|           distribution: adopt | ||||
|           java-version: 11 | ||||
|  | ||||
|         # Builds the release artifacts of the library | ||||
|       - name: Build | ||||
|         run: ./gradlew assemble | ||||
|  | ||||
|         # Generates other artifacts (javadocJar is optional) | ||||
|       - name: Source jar and dokka | ||||
|         run: ./gradlew androidSourcesJar javadocJar | ||||
							
								
								
									
										38
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| name: Publish | ||||
|  | ||||
| on: | ||||
|   release: | ||||
|     # We'll run this workflow when a new GitHub release is created | ||||
|     types: [released] | ||||
|  | ||||
| jobs: | ||||
|   publish: | ||||
|     name: Release build and publish | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Check out code | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Set up JDK 11 | ||||
|         uses: actions/setup-java@v2 | ||||
|         with: | ||||
|           distribution: adopt | ||||
|           java-version: 11 | ||||
|  | ||||
|         # Builds the release artifacts of the library | ||||
|       - name: Release build | ||||
|         run: ./gradlew :expandable-recyclerview:assembleRelease | ||||
|  | ||||
|         # Generates other artifacts (javadocJar is optional) | ||||
|       - name: Source jar and dokka | ||||
|         run: ./gradlew androidSourcesJar javadocJar | ||||
|  | ||||
|         # Runs upload, and then closes & releases the repository | ||||
|       - name: Publish to MavenCentral | ||||
|         run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository | ||||
|         env: | ||||
|           OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||||
|           OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||||
|           SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||||
|           SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||||
|           SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||||
|           SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | ||||
							
								
								
									
										23
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| name: Test | ||||
|  | ||||
| on: | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - master | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     name: Run unit tests | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Check out code | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Set up JDK 11 | ||||
|         uses: actions/setup-java@v2 | ||||
|         with: | ||||
|           distribution: adopt | ||||
|           java-version: 11 | ||||
|  | ||||
|         # Builds the release artifacts of the library | ||||
|       - name: Test | ||||
|         run: ./gradlew test | ||||
		Reference in New Issue
	
	Block a user