mirror of
				https://github.com/Vomitblood/stort.git
				synced 2025-11-04 04:37:21 +08:00 
			
		
		
		
	updated github actions workflow
This commit is contained in:
		
							parent
							
								
									4c6e069afa
								
							
						
					
					
						commit
						174d409111
					
				
							
								
								
									
										54
									
								
								.github/workflows/build-validation.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										54
									
								
								.github/workflows/build-validation.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -26,30 +26,30 @@ jobs:
 | 
				
			||||||
          git config --global --add safe.directory /__w/stort/stort
 | 
					          git config --global --add safe.directory /__w/stort/stort
 | 
				
			||||||
          echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
 | 
					          echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Update packages
 | 
					      - name: Update packages
 | 
				
			||||||
      #   run: apt update && apt upgrade -y
 | 
					        run: apt update && apt upgrade -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Install dependencies for Tauri
 | 
					      - name: Install dependencies for Tauri
 | 
				
			||||||
      #   run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
 | 
					        run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Install mise
 | 
					      - name: Install mise
 | 
				
			||||||
      #   run: |
 | 
					        run: |
 | 
				
			||||||
      #     install -dm 755 /etc/apt/keyrings
 | 
					          install -dm 755 /etc/apt/keyrings
 | 
				
			||||||
      #     wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null
 | 
					          wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null
 | 
				
			||||||
      #     echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list
 | 
					          echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list
 | 
				
			||||||
      #     apt update
 | 
					          apt update
 | 
				
			||||||
      #     apt install -y mise
 | 
					          apt install -y mise
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Install mise tools
 | 
					      - name: Install mise tools
 | 
				
			||||||
      #   run: |
 | 
					        run: |
 | 
				
			||||||
      #     mise install
 | 
					          mise install
 | 
				
			||||||
      #     mise settings set experimental true
 | 
					          mise settings set experimental true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Install bun packages
 | 
					      - name: Install bun packages
 | 
				
			||||||
      #   run: mise exec bun --command 'bun install'
 | 
					        run: mise exec bun --command 'bun install'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Build Tauri
 | 
					      - name: Build Tauri
 | 
				
			||||||
      #   run: mise exec bun --command 'bun run tauri build'
 | 
					        run: mise exec bun --command 'bun run tauri build'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Create Release
 | 
					      - name: Create Release
 | 
				
			||||||
        id: create_release
 | 
					        id: create_release
 | 
				
			||||||
| 
						 | 
					@ -62,22 +62,12 @@ jobs:
 | 
				
			||||||
          draft: false
 | 
					          draft: false
 | 
				
			||||||
          prerelease: false
 | 
					          prerelease: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # - name: Upload whatsip artifact to release (Windows)
 | 
					      - name: Upload whatsip artifact to release (Windows)
 | 
				
			||||||
      #   uses: actions/upload-release-asset@v1
 | 
					 | 
				
			||||||
      #   env:
 | 
					 | 
				
			||||||
      #     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
      #   with:
 | 
					 | 
				
			||||||
      #     upload_url: ${{ steps.create_release.outputs.upload_url }}
 | 
					 | 
				
			||||||
      #     asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage
 | 
					 | 
				
			||||||
      #     asset_name: stort-appimage.zip
 | 
					 | 
				
			||||||
      #     asset_content_type: application/octet-stream
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Upload build to release
 | 
					 | 
				
			||||||
        uses: actions/upload-release-asset@v1
 | 
					        uses: actions/upload-release-asset@v1
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          upload_url: ${{ steps.create_release.outputs.upload_url }}
 | 
					          upload_url: ${{ steps.create_release.outputs.upload_url }}
 | 
				
			||||||
          asset_path: ./public/images/background.jpg
 | 
					          asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage
 | 
				
			||||||
          asset_name: background.zip
 | 
					          asset_name: stort.AppImage
 | 
				
			||||||
          asset_content_type: application/octet-stream
 | 
					          asset_content_type: application/octet-stream
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue