Skip to content

ci: add support for a full-pages build#85

Open
ethanholz wants to merge 2 commits intomainfrom
feat/prod-deploy-cf
Open

ci: add support for a full-pages build#85
ethanholz wants to merge 2 commits intomainfrom
feat/prod-deploy-cf

Conversation

@ethanholz
Copy link
Copy Markdown
Collaborator

Adds support for full migration to Cloudflare pages when we want to go there.

@ethanholz ethanholz requested a review from dwhswenson March 17, 2026 21:58
@ethanholz ethanholz self-assigned this Mar 17, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 17, 2026

This PR has been staged at https://3e006ade.omsf.pages.dev.

It has been updated for commit 782f096.

Copy link
Copy Markdown
Member

@dwhswenson dwhswenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small things I would change; and definitely check on the name of the directory.

Any reason not to just use the install.py script we have in static-site-tools? At worst, put them in some other directory and copy the ones you still need into .github/workflows.

Comment on lines +18 to +19
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any node dependencies here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't. Fixed in 782f096

run: tar czf site.tar.gz public

- name: Upload build artifact
if: ${{ github.event_name != 'schedule' }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't have scheduled builds in this; don't need this line

Suggested change
if: ${{ github.event_name != 'schedule' }}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 782f096

with:
run-id: ${{ github.event.workflow_run.id }}
project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
html-dir: _site
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh, not sure if this should be _site or public; I think Hugo uses public, and IIRC, _site is from Jekyll. In the example, it looks like it is public (I don't think that var is defined).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 782f096

@ethanholz ethanholz requested a review from dwhswenson March 18, 2026 17:20
@ethanholz
Copy link
Copy Markdown
Collaborator Author

Any reason not to just use the install.py script we have in static-site-tools? At worst, put them in some other directory and copy the ones you still need into .github/workflows.

I honestly forgot we added this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants