From 2069f571c8ab3f6d82e6c9483c0ac4cc39b28c43 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Fri, 10 Jan 2025 00:35:09 +0700 Subject: [PATCH] Upgrade upload-artifact gh action to v4 as <=v3 deprecated This started failing github workflow jobs --- .github/workflows/desktop.yml | 10 +++++----- .github/workflows/github_pages_deploy.yml | 8 ++++---- .github/workflows/release.yml | 6 +++--- .github/workflows/run_evals.yml | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 1e459e222..003d899f5 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -60,7 +60,7 @@ jobs: - name: ⏫ Upload Mac ARM App if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: warn name: khoj-${{ github.ref_name }}-arm64.dmg @@ -68,7 +68,7 @@ jobs: - name: ⏫ Upload Mac x64 App if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: warn name: khoj-${{ github.ref_name }}-x64.dmg @@ -76,7 +76,7 @@ jobs: - name: ⏫ Upload Windows App if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: warn name: khoj-${{ github.ref_name }}-x64.exe @@ -84,7 +84,7 @@ jobs: - name: ⏫ Upload Debian App if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: warn name: khoj-${{ github.ref_name }}-x64.deb @@ -92,7 +92,7 @@ jobs: - name: ⏫ Upload Linux App Image if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: warn name: khoj-${{ github.ref_name }}-x64.AppImage diff --git a/.github/workflows/github_pages_deploy.yml b/.github/workflows/github_pages_deploy.yml index e1e136ef3..6f6cb70a1 100644 --- a/.github/workflows/github_pages_deploy.yml +++ b/.github/workflows/github_pages_deploy.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # 👇 Build steps - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x cache: yarn @@ -35,9 +35,9 @@ jobs: yarn build # 👆 Build steps - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: # 👇 Specify build output path path: documentation/build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f261aa8e..d43fef075 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,21 +35,21 @@ jobs: yarn run build --if-present - name: ⏫ Upload Obsidian Plugin main.js - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: main.js path: src/interface/obsidian/main.js - name: ⏫ Upload Obsidian Plugin manifest.json - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: manifest.json path: src/interface/obsidian/manifest.json - name: ⏫ Upload Obsidian Plugin styles.css - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: styles.css diff --git a/.github/workflows/run_evals.yml b/.github/workflows/run_evals.yml index 836d03b13..9695cfef8 100644 --- a/.github/workflows/run_evals.yml +++ b/.github/workflows/run_evals.yml @@ -133,7 +133,7 @@ jobs: - name: Upload Results if: always() # Upload results even if tests fail - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: eval-results-${{ steps.hatch.outputs.version }}-${{ matrix.khoj_mode }}-${{ matrix.dataset }} path: |