mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	CICD: Build: Check IS_RELEASE in separate step
And move it closer to where it is actually needed, to reduce its scope. For #1474
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							94fd481f36
						
					
				
				
					commit
					b98ec4bbc5
				
			
							
								
								
									
										10
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							@@ -114,8 +114,6 @@ jobs:
 | 
				
			|||||||
      id: vars
 | 
					      id: vars
 | 
				
			||||||
      shell: bash
 | 
					      shell: bash
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
 | 
					 | 
				
			||||||
        echo ::set-output name=IS_RELEASE::${IS_RELEASE}
 | 
					 | 
				
			||||||
        # target-specific options
 | 
					        # target-specific options
 | 
				
			||||||
        # # * test only library unit tests and binary for arm-type targets
 | 
					        # # * test only library unit tests and binary for arm-type targets
 | 
				
			||||||
        unset CARGO_TEST_OPTIONS
 | 
					        unset CARGO_TEST_OPTIONS
 | 
				
			||||||
@@ -376,9 +374,15 @@ jobs:
 | 
				
			|||||||
      with:
 | 
					      with:
 | 
				
			||||||
        name: ${{ steps.debian-package.outputs.DPKG_NAME }}
 | 
					        name: ${{ steps.debian-package.outputs.DPKG_NAME }}
 | 
				
			||||||
        path: ${{ steps.debian-package.outputs.DPKG_PATH }}
 | 
					        path: ${{ steps.debian-package.outputs.DPKG_PATH }}
 | 
				
			||||||
 | 
					    - name: Check is release
 | 
				
			||||||
 | 
					      id: is-release
 | 
				
			||||||
 | 
					      shell: bash
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
 | 
				
			||||||
 | 
					        echo ::set-output name=IS_RELEASE::${IS_RELEASE}
 | 
				
			||||||
    - 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.IS_RELEASE
 | 
					      if: steps.is-release.outputs.IS_RELEASE
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        files: |
 | 
					        files: |
 | 
				
			||||||
          ${{ steps.package.outputs.PKG_PATH }}
 | 
					          ${{ steps.package.outputs.PKG_PATH }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user