Skip to content

Commit fb10b8f

Browse files
committed
zip before upload
1 parent fe7b076 commit fb10b8f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ jobs:
3131
run: rsync -r ./_site/* [email protected]:/var/www/vhosts/fenicsproject.org/newsite
3232
if: ${{ github.repository == 'FEniCS/web' && github.ref == 'refs/heads/main' }}
3333

34+
- name: Make artifact zip
35+
run: |
36+
sudo apt-get install -y zip
37+
zip -q -r _site.zip _site
38+
if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }}
3439
- name: Upload build as artifact
3540
uses: actions/upload-artifact@v3
3641
with:
3742
name: website
38-
path: _site
43+
path: _site.zip
3944
if-no-files-found: error
4045
if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)