mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	CICD: Build: Make 'Upload build artifacts' more like deploy
The end goal is to upload the same artifacts for a PR as we deploy during a release, to make a regular PR pipeline as similar as possible to a deploy. The first step is to move 'Upload build artifacts' to after 'Package' so we can upload the same files. Also change the name and artifacts to be more similar to what we deploy for a release. For #1474
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							c38c186d26
						
					
				
				
					commit
					7ffb04a17a
				
			
							
								
								
									
										10
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							@@ -227,11 +227,6 @@ jobs:
 | 
			
		||||
        use-cross: ${{ matrix.job.use-cross }}
 | 
			
		||||
        command: check
 | 
			
		||||
        args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git,paging
 | 
			
		||||
    - name: Upload build artifacts
 | 
			
		||||
      uses: actions/upload-artifact@master
 | 
			
		||||
      with:
 | 
			
		||||
        name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}
 | 
			
		||||
        path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}
 | 
			
		||||
    - name: Package
 | 
			
		||||
      shell: bash
 | 
			
		||||
      run: |
 | 
			
		||||
@@ -344,6 +339,11 @@ jobs:
 | 
			
		||||
          # build dpkg
 | 
			
		||||
          fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
 | 
			
		||||
        fi
 | 
			
		||||
    - name: Upload build artifacts
 | 
			
		||||
      uses: actions/upload-artifact@master
 | 
			
		||||
      with:
 | 
			
		||||
        name: ${{ steps.vars.outputs.PKG_NAME }}
 | 
			
		||||
        path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}
 | 
			
		||||
    - name: Publish archives and packages
 | 
			
		||||
      uses: softprops/action-gh-release@v1
 | 
			
		||||
      if: steps.vars.outputs.DEPLOY
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user