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
							
								
									c1531bb53b
								
							
						
					
					
						commit
						716c2a1867
					
				
							
								
								
									
										71
									
								
								.github/workflows/build-validation.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										71
									
								
								.github/workflows/build-validation.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -38,42 +38,47 @@ jobs:
 | 
				
			||||||
          . "$HOME/.cargo/env"
 | 
					          . "$HOME/.cargo/env"
 | 
				
			||||||
          rustup update
 | 
					          rustup update
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install mise
 | 
					      - name: Testing
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          install -dm 755 /etc/apt/keyrings
 | 
					          cargo --help
 | 
				
			||||||
          wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null
 | 
					          cargo --version
 | 
				
			||||||
          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 install -y mise
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install mise tools
 | 
					      # - name: Install mise
 | 
				
			||||||
        run: |
 | 
					      #   run: |
 | 
				
			||||||
          mise install
 | 
					      #     install -dm 755 /etc/apt/keyrings
 | 
				
			||||||
          mise settings set experimental true
 | 
					      #     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
 | 
				
			||||||
 | 
					      #     apt update
 | 
				
			||||||
 | 
					      #     apt install -y mise
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install bun packages
 | 
					      # - name: Install mise tools
 | 
				
			||||||
        run: mise exec bun --command 'bun install'
 | 
					      #   run: |
 | 
				
			||||||
 | 
					      #     mise install
 | 
				
			||||||
 | 
					      #     mise settings set experimental true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build Tauri
 | 
					      # - name: Install bun packages
 | 
				
			||||||
        run: mise exec bun --command 'bun run tauri build'
 | 
					      #   run: mise exec bun --command 'bun install'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Create Release
 | 
					      # - name: Build Tauri
 | 
				
			||||||
        id: create_release
 | 
					      #   run: mise exec bun --command 'bun run tauri build'
 | 
				
			||||||
        uses: actions/create-release@v1
 | 
					 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          tag_name: ${{ env.TAG_NAME }}
 | 
					 | 
				
			||||||
          release_name: ${{ env.TAG_NAME }}
 | 
					 | 
				
			||||||
          draft: false
 | 
					 | 
				
			||||||
          prerelease: false
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Upload build to release
 | 
					      # - name: Create Release
 | 
				
			||||||
        uses: actions/upload-release-asset@v1
 | 
					      #   id: create_release
 | 
				
			||||||
        env:
 | 
					      #   uses: actions/create-release@v1
 | 
				
			||||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					      #   env:
 | 
				
			||||||
        with:
 | 
					      #     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
          upload_url: ${{ steps.create_release.outputs.upload_url }}
 | 
					      #   with:
 | 
				
			||||||
          asset_path: ./src-tauri/target/release/bundle/appimage/stort_0.1.0_amd64.AppImage
 | 
					      #     tag_name: ${{ env.TAG_NAME }}
 | 
				
			||||||
          asset_name: stort.AppImage
 | 
					      #     release_name: ${{ env.TAG_NAME }}
 | 
				
			||||||
          asset_content_type: application/octet-stream
 | 
					      #     draft: false
 | 
				
			||||||
 | 
					      #     prerelease: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # - name: Upload build to release
 | 
				
			||||||
 | 
					      #   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/stort_0.1.0_amd64.AppImage
 | 
				
			||||||
 | 
					      #     asset_name: stort.AppImage
 | 
				
			||||||
 | 
					      #     asset_content_type: application/octet-stream
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue