From 48f8a3f0179e98d05ae4019ab94b62aa97d72ff7 Mon Sep 17 00:00:00 2001 From: Ali Afzal Date: Mon, 3 Feb 2025 23:11:11 -0800 Subject: [PATCH] artifact actions v3 is depricatred (#2716) Summary: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ updating artifact actions to v4 Reviewed By: PaulZhang12 Differential Revision: D68931905 --- .../workflows/build_dynamic_embedding_wheels.yml | 13 ++++++++++++- .github/workflows/docs.yml | 6 ++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_dynamic_embedding_wheels.yml b/.github/workflows/build_dynamic_embedding_wheels.yml index 3c37d2aa0..9547825a9 100644 --- a/.github/workflows/build_dynamic_embedding_wheels.yml +++ b/.github/workflows/build_dynamic_embedding_wheels.yml @@ -55,6 +55,17 @@ jobs: shell: bash - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: upload-wheels-artifact-${{ matrix.runs-on }} path: wheelhouse/*.whl + + merge: + runs-on: ${{ matrix.os }} + needs: build_wheels + steps: + - name: Merge Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: all-my-wheels + pattern: wheels-* diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bd5162a4b..32cfb896e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -83,10 +83,11 @@ jobs: conda run -n build_binary make html cd .. - name: Upload Built-Docs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Built-Docs path: docs/build/html/ + overwrite: true - name: Get output time run: echo "The time was ${{ steps.build.outputs.time }}" - name: Deploy @@ -105,10 +106,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Built-Docs path: docs + overwrite: true - name: Add no-index tag run: | find docs -name "*.html" -print0 | xargs -0 sed -i '//a \ \ ';