|
1 | 1 | name: Build .NET SDK (GCC) |
2 | 2 |
|
3 | | -on: [workflow_dispatch] |
| 3 | +on: [workflow_dispatch, pull_request] |
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | build_with_gcc: |
|
93 | 93 | cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Runtime.linux-riscv64.*.nupkg ${PACKAGESDIR} |
94 | 94 | mkdir -p ${DOWNLOADDIR}/Runtime/${RUNTIME_VERSION} |
95 | 95 | cp artifacts/packages/Release/Shipping/dotnet-runtime-*-linux-riscv64.tar.gz ${DOWNLOADDIR}/Runtime/${RUNTIME_VERSION} |
96 | | - cp artifacts/packages/Release/Shipping/dotnet-runtime-*-linux-riscv64.tar.gz ${OUTPUTDIR} |
97 | 96 | cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Host.linux-riscv64.*.nupkg ${OUTPUTDIR} |
98 | 97 | cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Runtime.linux-riscv64.*.nupkg ${OUTPUTDIR} |
99 | | - cp artifacts/packages/Release/Shipping/runtime.linux-riscv64.Microsoft.NETCore.DotNetAppHost.*.nupkg ${OUTPUTDIR} |
100 | | - cp artifacts/packages/Release/Shipping/runtime.linux-riscv64.Microsoft.NETCore.ILAsm.*.nupkg ${OUTPUTDIR} |
101 | | - cp artifacts/packages/Release/Shipping/runtime.linux-riscv64.Microsoft.NETCore.ILDAsm.*.nupkg ${OUTPUTDIR} |
102 | 98 | cd .. && rm -r runtime |
103 | 99 |
|
104 | 100 | - name: Build aspnetcore |
@@ -129,11 +125,19 @@ jobs: |
129 | 125 | mkdir -p ${DOWNLOADDIR}/Sdk/${SDK_VERSION} |
130 | 126 | cp artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip ${DOWNLOADDIR}/Sdk/${SDK_VERSION}/dotnet-toolset-internal-${SDK_VERSION}.zip |
131 | 127 | cp artifacts/packages/Release/Shipping/Microsoft.DotNet.Common.*.nupkg ${PACKAGESDIR} |
132 | | - cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz ${OUTPUTDIR} |
133 | | - cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz.sha512 ${OUTPUTDIR} |
| 128 | + cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz ${OUTPUTDIR}/dotnet-sdk-${SDK_VERSION}-linux-riscv64-gcc-${{ matrix.os }}.tar.gz |
| 129 | + cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz.sha512 ${OUTPUTDIR}/dotnet-sdk-${SDK_VERSION}-linux-riscv64-gcc-${{ matrix.os }}.tar.gz.sha512 |
134 | 130 |
|
135 | 131 | - name: Upload .NET |
136 | 132 | uses: actions/upload-artifact@v4 |
| 133 | + if: startsWith(github.ref, 'refs/tags/') != true |
137 | 134 | with: |
138 | 135 | name: "dotnet-sdk-linux-riscv64-gcc-${{ matrix.os }}" |
139 | | - path: "${{ github.workspace }}/output/*" |
| 136 | + path: "${{ github.workspace }}/output/dotnet-sdk-*.tar.gz*" |
| 137 | + |
| 138 | + - name: Release |
| 139 | + uses: softprops/action-gh-release@v2 |
| 140 | + if: startsWith(github.ref, 'refs/tags/') |
| 141 | + with: |
| 142 | + files: | |
| 143 | + ${{ github.workspace }}/output/dotnet-sdk-*.tar.gz* |
0 commit comments