From 9cc29256b5386ab9852b073c241d416b741697e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20de=20Courville?= Date: Wed, 11 Dec 2024 21:52:42 +0100 Subject: [PATCH] Finish refactoring Javadoc workflow to upload artifacts instead of caching --- .../workflows/build-and-deploy-javadoc.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-deploy-javadoc.yml b/.github/workflows/build-and-deploy-javadoc.yml index 853c35f..676d7b2 100644 --- a/.github/workflows/build-and-deploy-javadoc.yml +++ b/.github/workflows/build-and-deploy-javadoc.yml @@ -87,18 +87,16 @@ jobs: - name: Add .nojekyll file run: echo > processing4/build/javadoc/.nojekyll - - name: Cache Javadocs - uses: actions/cache@v4 + - name: Upload Javadocs artifact for Deployment + uses: actions/upload-pages-artifact@v3 with: + name: github-pages path: processing4/build/javadoc - key: javadocs-${{ env.COMMIT_SHA }} - restore-keys: | - javadocs- - - name: Upload Javadocs artifact - uses: actions/upload-pages-artifact@v3 + - name: Upload Javadocs artifact for Commit + uses: actions/upload-artifact@v3 with: - name: github-pages + name: javadocs path: processing4/build/javadoc - name: Clean up the processing4 directory @@ -135,9 +133,10 @@ jobs: with: fetch-depth: 0 - - name: Download artifact - uses: actions/download-pages-artifact@v3 + - name: Download Javadocs artifact + uses: actions/download-artifact@v4 with: + name: javadocs path: processing4/build/javadoc - name: Configure Git