Skip to content

Commit

Permalink
Upload build from PR CI for easier previewing (#150)
Browse files Browse the repository at this point in the history
This has PR CI upload the resulting static site output, once the build
finishes.

This is a stop gap for
#28 that's seems like
it's better than nothing: to preview a PR, click through to the build
summary, download the artifact and take a look. This saves a reviewer
from needing to check-out the branch and build it, just do a (100MB)
download instead.
  • Loading branch information
huonw authored Feb 19, 2024
1 parent 256a282 commit 92d5ce8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,16 @@ jobs:
run: npm run build
env:
NODE_OPTIONS: --max-old-space-size=6144

# As an interim step in lieu of https://github.com/pantsbuild/pantsbuild.org/issues/28, upload
# the build result so someone can download and view it, without having to run the build
# themselves. (The explicit zip step is workaround for
# https://github.com/actions/upload-artifact/issues/333 )
- name: Zip build
run: zip -r site-build.zip build/

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: "site-build"
path: site-build.zip

0 comments on commit 92d5ce8

Please sign in to comment.