mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	CICD: Build: Always build and upload Debian packages
Not only when a release tag is pushed. Also publish these Debian packages as artifacts. This makes PR workflows more similar to release work flows, and reduces risk of build system regressions that we don't detect until we make a new release. For #1474
This commit is contained in:
		
				
					committed by
					
						 David Peter
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							9a3a5545e7
						
					
				
				
					commit
					505ff10dc6
				
			
							
								
								
									
										11
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							| @@ -135,8 +135,7 @@ jobs: | |||||||
|           x86_64-*-linux-*) DPKG_ARCH=amd64 ;; |           x86_64-*-linux-*) DPKG_ARCH=amd64 ;; | ||||||
|         esac; |         esac; | ||||||
|         echo ::set-output name=DPKG_ARCH::${DPKG_ARCH} |         echo ::set-output name=DPKG_ARCH::${DPKG_ARCH} | ||||||
|         # DPKG version? |         DPKG_VERSION=${PROJECT_VERSION} | ||||||
|         unset DPKG_VERSION ; if [[ $REF_TAG =~ ^[vV]?[0-9].* ]]; then DPKG_VERSION=${REF_TAG/#[vV]/} ; fi |  | ||||||
|         echo ::set-output name=DPKG_VERSION::${DPKG_VERSION} |         echo ::set-output name=DPKG_VERSION::${DPKG_VERSION} | ||||||
|         # DPKG base name/conflicts? |         # DPKG base name/conflicts? | ||||||
|         DPKG_BASENAME=${PROJECT_NAME} |         DPKG_BASENAME=${PROJECT_NAME} | ||||||
| @@ -339,11 +338,17 @@ jobs: | |||||||
|           # build dpkg |           # build dpkg | ||||||
|           fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}" |           fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}" | ||||||
|         fi |         fi | ||||||
|     - name: Upload build artifacts |     - name: Upload package artifact | ||||||
|       uses: actions/upload-artifact@master |       uses: actions/upload-artifact@master | ||||||
|       with: |       with: | ||||||
|         name: ${{ steps.vars.outputs.PKG_NAME }} |         name: ${{ steps.vars.outputs.PKG_NAME }} | ||||||
|         path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }} |         path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }} | ||||||
|  |     - name: Upload Debian package artifact | ||||||
|  |       uses: actions/upload-artifact@master | ||||||
|  |       if: steps.vars.outputs.DPKG_NAME | ||||||
|  |       with: | ||||||
|  |         name: ${{ steps.vars.outputs.DPKG_NAME }} | ||||||
|  |         path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }} | ||||||
|     - name: Publish archives and packages |     - name: Publish archives and packages | ||||||
|       uses: softprops/action-gh-release@v1 |       uses: softprops/action-gh-release@v1 | ||||||
|       if: steps.vars.outputs.DEPLOY |       if: steps.vars.outputs.DEPLOY | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user