Switch to Node.js based GitHub Actions workflow and remove Nix-based builds#2
Merged
Merged
Conversation
- Introduce a new build-and-deploy GitHub Actions workflow that runs on push and manual dispatch - Setup Node.js environment, cache dependencies, build the site with Eleventy - Deploy built site to Neocities and Bunny CDN - Simplify flake.nix by removing site packaging, focusing on devShell for nodejs - Add npm scripts for build and serve in package.json to standardize commands This enables CI/CD automation for building and deploying the site efficiently. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
…ing them Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
The GitHub Actions workflow was updated to use the correct secret name `NEOCITIES_API_KEY` instead of `NEOCITIES_API_TOKEN` for the deployment step to Neocities. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/build-and-deploy.yamlfor building the site using Node.js 23 and deploying to Neocities and Bunny CDNdefault.nixand massively simplifiesflake.nix, dropping outdated build scripts and nix-shell featurespackage.jsonfor local development convenienceChanges
Continuous Integration
npm ciand Eleventy static site generator_sitedirectory to Neocities and Bunny CDN with configured secretsBuild Infrastructure
biomedependency, and scripted build phasesLocal Development
build: runseleventyto build the siteserve: runseleventy --servefor local dev serverTest plan
npm run buildproduces a valid static sitenpm run serveruns development server successfullyThis migration streamlines the build and deployment process by leveraging Node.js tooling and GitHub Actions, making it easier to maintain and onboard new contributors without requiring a Nix environment.
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/c97b60c7-d3fc-4f5a-bc62-dfa5e9097b0b