fix: added publish release and removing image from the appimage
This commit is contained in:
		
							parent
							
								
									920b7220c8
								
							
						
					
					
						commit
						bf0baaf9d2
					
				
					 1 changed files with 59 additions and 17 deletions
				
			
		
							
								
								
									
										76
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										76
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -1,17 +1,17 @@ | |||
| name: Build AppImage and Windows .exe | ||||
| name: Build AppImage, Windows EXE and Publish Release | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - main | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - main | ||||
|     tags: | ||||
|       - 'v*.*.*' | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build-linux: | ||||
|     runs-on: ubuntu-latest | ||||
|     name: Build AppImage | ||||
|     outputs: | ||||
|       artifact_path: ${{ steps.upload_artifacts.outputs.artifact_path }} | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v3 | ||||
|  | @ -19,12 +19,16 @@ jobs: | |||
|       - name: Set up Python | ||||
|         uses: actions/setup-python@v4 | ||||
|         with: | ||||
|           python-version: '3.x' | ||||
|           python-version: "3.x" | ||||
| 
 | ||||
|       - name: Install PyInstaller | ||||
|       - name: Install PyInstaller and dependencies | ||||
|         run: pip install pyinstaller | ||||
| 
 | ||||
|       - name: Create AppDir structure and files without icon | ||||
|       - name: Build Linux executable with PyInstaller | ||||
|         run: | | ||||
|           pyinstaller --onefile --windowed time_logix.py | ||||
| 
 | ||||
|       - name: Create AppDir and Files without Icon | ||||
|         run: | | ||||
|           mkdir -p AppDir/usr/bin | ||||
|           pyinstaller --onefile --windowed time_logix.py | ||||
|  | @ -55,14 +59,14 @@ jobs: | |||
|           chmod +x appimagetool-x86_64.AppImage | ||||
| 
 | ||||
|       - name: Build AppImage | ||||
|         run: | | ||||
|           ./appimagetool-x86_64.AppImage AppDir | ||||
|         run: ./appimagetool-x86_64.AppImage AppDir | ||||
| 
 | ||||
|       - name: Upload Linux Artifacts | ||||
|         uses: actions/upload-artifact@v4 | ||||
|       - name: Upload Linux Artifact | ||||
|         id: upload_artifacts | ||||
|         uses: actions/upload-artifact@v3.1.2 | ||||
|         with: | ||||
|           name: TimeLogix-AppImage | ||||
|           path: TimeLogix*.AppImage | ||||
|           path: TimeLogix*-x86_64.AppImage | ||||
| 
 | ||||
|   build-windows: | ||||
|     runs-on: windows-latest | ||||
|  | @ -74,7 +78,7 @@ jobs: | |||
|       - name: Set up Python | ||||
|         uses: actions/setup-python@v4 | ||||
|         with: | ||||
|           python-version: '3.x' | ||||
|           python-version: "3.x" | ||||
| 
 | ||||
|       - name: Install PyInstaller | ||||
|         run: pip install pyinstaller | ||||
|  | @ -83,8 +87,46 @@ jobs: | |||
|         run: pyinstaller --onefile --windowed time_logix.py | ||||
| 
 | ||||
|       - name: Upload Windows Artifact | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         uses: actions/upload-artifact@v3.1.2 | ||||
|         with: | ||||
|           name: TimeLogix-Windows | ||||
|           path: dist/time_logix.exe | ||||
|        | ||||
| 
 | ||||
|   release: | ||||
|     name: Publish Release | ||||
|     needs: | ||||
|       - build-linux | ||||
|       - build-windows | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Retrieve Linux artifact | ||||
|         uses: actions/download-artifact@v3.1.2 | ||||
|         with: | ||||
|           name: TimeLogix-AppImage | ||||
| 
 | ||||
|       - name: Retrieve Windows artifact | ||||
|         uses: actions/download-artifact@v3.1.2 | ||||
|         with: | ||||
|           name: TimeLogix-Windows | ||||
| 
 | ||||
|       - name: Create GitHub Release | ||||
|         id: create_release | ||||
|         uses: softprops/action-gh-release@v1 | ||||
|         with: | ||||
|           tag_name: ${{ github.ref }} | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
| 
 | ||||
|       - name: Upload Linux AppImage to Release | ||||
|         uses: softprops/action-gh-release-upload@v1 | ||||
|         with: | ||||
|           asset_path: ./$(ls | grep AppImage) | ||||
|           asset_name: TimeLogix-AppImage.AppImage | ||||
|           asset_content_type: application/octet-stream | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
| 
 | ||||
|       - name: Upload Windows EXE to Release | ||||
|         uses: softprops/action-gh-release-upload@v1 | ||||
|         with: | ||||
|           asset_path: ./$(ls | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Blake Ridgway
						Blake Ridgway