Add release CI.
This commit is contained in:
		
							parent
							
								
									b252922b0a
								
							
						
					
					
						commit
						de9ef4c948
					
				
							
								
								
									
										8
									
								
								.github/workflows/all-builds.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/all-builds.yml
									
									
									
									
										vendored
									
									
								
							@ -1,10 +1,16 @@
 | 
			
		||||
name: All Builds
 | 
			
		||||
name: Build
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - '*'
 | 
			
		||||
    # Runs on tag so the release workflow can use its artifact.
 | 
			
		||||
    tags:
 | 
			
		||||
      - "v*"
 | 
			
		||||
  pull_request:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  QT_VERSION: 6.6.0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										35
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,35 @@
 | 
			
		||||
name: Release
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_run:
 | 
			
		||||
    workflows: ["Build"]
 | 
			
		||||
    types:
 | 
			
		||||
      - completed
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    if: startsWith(github.ref, 'refs/tags/')
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Download Installer Artifact
 | 
			
		||||
        uses: actions/download-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: Qtk Packages
 | 
			
		||||
          path: |
 | 
			
		||||
            build/packages/*
 | 
			
		||||
            install/*
 | 
			
		||||
 | 
			
		||||
      - name: Create GitHub Release
 | 
			
		||||
        id: create_release
 | 
			
		||||
        uses: softprops/action-gh-release@v1
 | 
			
		||||
        with:
 | 
			
		||||
          tag_name: ${{ github.event.workflow_run.head_branch }}
 | 
			
		||||
          name: Qtk ${{ github.event.workflow_run.head_branch }}
 | 
			
		||||
          draft: true
 | 
			
		||||
          prerelease: false
 | 
			
		||||
          generate_release_notes: true
 | 
			
		||||
          files: |
 | 
			
		||||
            build/packages/*
 | 
			
		||||
            install/*
 | 
			
		||||
        env:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user