From 5d434a689bb413b9cde4acd3d34489874291c32f Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Thu, 14 Dec 2023 09:25:20 +0000 Subject: [PATCH] 404 page (#160) * 404 page * zip before upload --- .github/workflows/build.yml | 7 ++++++- 404.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfa1d475..c08ae737 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,10 +31,15 @@ jobs: run: rsync -r ./_site/* github@fenicsproject.org:/var/www/vhosts/fenicsproject.org/newsite if: ${{ github.repository == 'FEniCS/web' && github.ref == 'refs/heads/main' }} + - name: Make artifact zip + run: | + sudo apt-get install -y zip + zip -q -r _site.zip _site + if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }} - name: Upload build as artifact uses: actions/upload-artifact@v3 with: name: website - path: _site + path: _site.zip if-no-files-found: error if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }} diff --git a/404.md b/404.md index fb069c9b..92ed93f5 100644 --- a/404.md +++ b/404.md @@ -1,6 +1,7 @@ --- title: Could not find page subtitle: (404 error) +permalink: /404.html --- Please use the links above to find the page you were looking for.