diff --git a/.github/workflows/redpoint.yml b/.github/workflows/redpoint.yml index 1c1f29775f5c53..3b74fddfa8a9ec 100644 --- a/.github/workflows/redpoint.yml +++ b/.github/workflows/redpoint.yml @@ -53,13 +53,14 @@ jobs: - name: "Prepare for Upload" run: | mv /opt/llvm-redpoint llvm-linux-${{ needs.get-branch-name.outputs.branch }} + zip -r llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip llvm-linux-${{ needs.get-branch-name.outputs.branch }} - name: "Upload LLVM" uses: actions/upload-artifact@v4 with: name: llvm-linux-${{ needs.get-branch-name.outputs.branch }} if-no-files-found: error path: | - llvm-linux-${{ needs.get-branch-name.outputs.branch }} + llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip llvm-redpoint-windows: name: "Build for Windows" @@ -113,17 +114,37 @@ jobs: shell: pwsh run: | Move-Item -Force "C:\Program Files\LLVM" llvm-win64-${{ needs.get-branch-name.outputs.branch }} + Compress-Archive -Force -Path "llvm-win64-${{ needs.get-branch-name.outputs.branch }}" -DestinationPath "llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip" - name: "Upload LLVM ZIP" uses: actions/upload-artifact@v4 with: name: llvm-win64-${{ needs.get-branch-name.outputs.branch }} if-no-files-found: error path: | - llvm-win64-${{ needs.get-branch-name.outputs.branch }} + llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip - name: "Upload LLVM MSI" uses: actions/upload-artifact@v4 with: name: llvm-win64-msi-${{ needs.get-branch-name.outputs.branch }} if-no-files-found: error path: | - .github/workflows/llvm.msi \ No newline at end of file + .github/workflows/llvm.msi + + create-release: + name: "Create Release" + needs: + - llvm-redpoint-linux + - llvm-redpoint-windows + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Publish Release + uses: ncipollo/release-action@v1 + with: + artifacts: "llvm-linux-${{ needs.get-branch-name.outputs.branch }},llvm-win64-${{ needs.get-branch-name.outputs.branch }}" + artifactErrorsFailBuild: true + artifactContentType: "application/zip" + tag: "${{ needs.get-branch-name.outputs.branch }}-${{ env.GITHUB_SHA }}" + commit: ${{ env.GITHUB_SHA }} + body: This release for Clang ${{ needs.get-branch-name.outputs.branch }} was automatically created from a successful build. + generateReleaseNotes: true \ No newline at end of file