-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 404 page * zip before upload
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |