Skip to content

Commit

Permalink
404 page (#160)
Browse files Browse the repository at this point in the history
* 404 page

* zip before upload
  • Loading branch information
mscroggs authored Dec 14, 2023
1 parent 0a06114 commit 5d434a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
run: rsync -r ./_site/* [email protected]:/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' }}
1 change: 1 addition & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 5d434a6

Please sign in to comment.