From 89b9d71c4ba9d5cd4f0cacb8e3f529386eff1a70 Mon Sep 17 00:00:00 2001 From: object-Object Date: Mon, 28 Aug 2023 23:17:43 -0400 Subject: [PATCH] Make the matrix stop overwriting itself --- .github/workflows/build_docs.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index b4b7de9b..7e0e456d 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -86,8 +86,11 @@ jobs: echo "::warning title=Invalid file permissions automatically fixed::$line" done - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + - name: Upload temporary Pages artifact + uses: actions/upload-artifact@v3 + with: + name: github-pages-tmp + path: _site/ generate: runs-on: ubuntu-latest @@ -118,12 +121,29 @@ jobs: - name: Build web book run: $HEXDOC --lang ${{ matrix.lang }} -o _site + - name: Upload temporary Pages artifact + uses: actions/upload-artifact@v3 + with: + name: github-pages-tmp + path: _site/ + + bundle-pages: + runs-on: ubuntu-latest + needs: generate + + steps: + - name: Download temporary Pages artifact + uses: actions/download-artifact@v3 + with: + name: github-pages-tmp + path: _site/ + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v2 deploy-pages: runs-on: ubuntu-latest - needs: generate + needs: bundle-pages environment: name: github-pages