mirror of
				https://github.com/velopack/velopack.git
				synced 2025-10-25 15:19:22 +00:00 
			
		
		
		
	ci: v4 artifacts don't support uploading to same name
This commit is contained in:
		
							
								
								
									
										64
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										64
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -64,16 +64,24 @@ jobs: | |||||||
|       - name: Upload Rust Artifacts |       - name: Upload Rust Artifacts | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           name: rust |           name: rust-${{ matrix.os }} | ||||||
|           path: | |           path: | | ||||||
|             src/Rust/target/release/updatemac |             src/Rust/target/release/updatemac | ||||||
|             src/Rust/target/release/*.exe |             src/Rust/target/release/*.exe | ||||||
|  |  | ||||||
|       - name: Upload Coverage |       # - name: Upload Coverage Artifacts | ||||||
|         uses: actions/upload-artifact@v4 |       #   uses: actions/upload-artifact@v4 | ||||||
|  |       #   with: | ||||||
|  |       #     name: coverage | ||||||
|  |       #     path: test/coverage*.xml | ||||||
|  |  | ||||||
|  |       - name: Upload Coverage to Codecov | ||||||
|  |         uses: codecov/codecov-action@v3 | ||||||
|  |         env: | ||||||
|  |           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||||||
|         with: |         with: | ||||||
|           name: coverage |           directory: ./coverage | ||||||
|           path: test/coverage*.xml |           fail_ci_if_error: true | ||||||
|    |    | ||||||
|   package: |   package: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @@ -90,30 +98,36 @@ jobs: | |||||||
|           restore-keys: | |           restore-keys: | | ||||||
|             ${{ runner.os }}-nuget- |             ${{ runner.os }}-nuget- | ||||||
|  |  | ||||||
|       - name: Install .NET 6 |       # - name: Install .NET 6 | ||||||
|         uses: actions/setup-dotnet@v4 |       #   uses: actions/setup-dotnet@v4 | ||||||
|         with: |       #   with: | ||||||
|           dotnet-version: 6.0.x |       #     dotnet-version: 6.0.x | ||||||
|  |  | ||||||
|       - name: Install .NET 8 |       # - name: Install .NET 8 | ||||||
|         uses: actions/setup-dotnet@v4 |       #   uses: actions/setup-dotnet@v4 | ||||||
|         with: |       #   with: | ||||||
|           dotnet-version: 8.0.x |       #     dotnet-version: 8.0.x | ||||||
|  |  | ||||||
|       - name: Print dotnet version |       - name: Print dotnet version | ||||||
|         run: dotnet --info |         run: dotnet --info | ||||||
|    |    | ||||||
|       - name: Download Rust Artifacts |       - name: Download Rust Windows | ||||||
|         uses: actions/download-artifact@v4 |         uses: actions/download-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           name: rust |           name: rust-macos-latest | ||||||
|           path: src/Rust/target/release |           path: src/Rust/target/release | ||||||
|  |  | ||||||
|       - name: Download Coverage Artifacts |       - name: Download Rust OSX | ||||||
|         uses: actions/download-artifact@v4 |         uses: actions/download-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           name: coverage |           name: rust-windows-latest | ||||||
|           path: ./coverage |           path: src/Rust/target/release | ||||||
|  |  | ||||||
|  |       # - name: Download Coverage Artifacts | ||||||
|  |       #   uses: actions/download-artifact@v4 | ||||||
|  |       #   with: | ||||||
|  |       #     name: coverage | ||||||
|  |       #     path: ./coverage | ||||||
|  |  | ||||||
|       - name: Build .NET |       - name: Build .NET | ||||||
|         run: dotnet build -c Release /p:PackRustAssets=true |         run: dotnet build -c Release /p:PackRustAssets=true | ||||||
| @@ -124,13 +138,13 @@ jobs: | |||||||
|           name: packages |           name: packages | ||||||
|           path: .\build\Release\*.nupkg |           path: .\build\Release\*.nupkg | ||||||
|  |  | ||||||
|       - name: Upload Coverage to Codecov |       # - name: Upload Coverage to Codecov | ||||||
|         uses: codecov/codecov-action@v3 |       #   uses: codecov/codecov-action@v3 | ||||||
|         env: |       #   env: | ||||||
|           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |       #     CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||||||
|         with: |       #   with: | ||||||
|           directory: ./coverage |       #     directory: ./coverage | ||||||
|           fail_ci_if_error: true |       #     fail_ci_if_error: true | ||||||
|  |  | ||||||
|       - name: Publish to GitHub Packages |       - name: Publish to GitHub Packages | ||||||
|         shell: pwsh |         shell: pwsh | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user