From 6cdce75095de545179b5449823b8834f4104bf67 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 12 Jan 2025 22:03:50 +0100 Subject: [PATCH] git: Upload artifact for ImHex Web build --- .github/workflows/build_web.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_web.yml b/.github/workflows/build_web.yml index 1f0ad336e..46d389b4c 100644 --- a/.github/workflows/build_web.yml +++ b/.github/workflows/build_web.yml @@ -51,8 +51,20 @@ jobs: - name: ⬆️ Upload artifacts uses: actions/upload-pages-artifact@v3 with: + name: github_pages path: out/ + - name: 🔨 Copy necessary files + run: | + cp dist/web/serve.py out/start_imhex_web.py + + - name: ⬆️ Upload package + uses: actions/upload-artifact@v4 + with: + if-no-files-found: error + name: ImHex Web + path: out/* + # See https://github.com/actions/cache/issues/342#issuecomment-1711054115 - name: 🗑️ Delete old cache continue-on-error: true @@ -76,4 +88,9 @@ jobs: steps: - name: 🌍 Deploy id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 + + - name: 🗑️ Delete artifact + uses: geekyeggo/delete-artifact@v5 + with: + name: github_pages \ No newline at end of file