mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Upload jars in CI earlier
This means they're uploaded even if the linters or tests fail.
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -30,6 +30,18 @@ jobs: | |||||||
|     - name: ⚒️ Build |     - name: ⚒️ Build | ||||||
|       run: ./gradlew assemble || ./gradlew assemble |       run: ./gradlew assemble || ./gradlew assemble | ||||||
|  |  | ||||||
|  |     - name: 📦 Prepare Jars | ||||||
|  |       run: | | ||||||
|  |         # Find the main jar and append the git hash onto it. | ||||||
|  |         mkdir -p jars | ||||||
|  |         find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \; | ||||||
|  |  | ||||||
|  |     - name: 📤 Upload Jar | ||||||
|  |       uses: actions/upload-artifact@v4 | ||||||
|  |       with: | ||||||
|  |         name: CC-Tweaked | ||||||
|  |         path: ./jars | ||||||
|  |  | ||||||
|     - name: Cache pre-commit |     - name: Cache pre-commit | ||||||
|       uses: actions/cache@v4 |       uses: actions/cache@v4 | ||||||
|       with: |       with: | ||||||
| @@ -54,18 +66,6 @@ jobs: | |||||||
|       run: ./tools/parse-reports.py |       run: ./tools/parse-reports.py | ||||||
|       if: ${{ failure() }} |       if: ${{ failure() }} | ||||||
|  |  | ||||||
|     - name: 📦 Prepare Jars |  | ||||||
|       run: | |  | ||||||
|         # Find the main jar and append the git hash onto it. |  | ||||||
|         mkdir -p jars |  | ||||||
|         find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \; |  | ||||||
|  |  | ||||||
|     - name: 📤 Upload Jar |  | ||||||
|       uses: actions/upload-artifact@v4 |  | ||||||
|       with: |  | ||||||
|         name: CC-Tweaked |  | ||||||
|         path: ./jars |  | ||||||
|  |  | ||||||
|   build-core: |   build-core: | ||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates