Workflow
Ship a static site with VS Code, GitHub, and Vercel
Confirm the project is static, preview its real configuration, and check content, links, mobile layout, and secrets before release.
Sources checked
Editorial guidance compiled from official documentation; the workflows were not individually tested. The source-check date on this page records when the listed references were reviewed, not product testing or ongoing monitoring.
Tools referenced
Who this is for
For people building a simple page from HTML, CSS, and images.
Example scenario
Publish a weekend event page with time, venue, registration, and an image. Review it locally, keep changes in GitHub, check a Vercel preview on phone and desktop, then release.
Five steps from folder to release
Edit in VS Code
Open the folder, edit HTML/CSS, and use search and preview. Read the README to confirm project type. [1]Start with a minimal structure
For a new static page, try: site/ index.html styles.css assets/ event.jpg README.md Keep paths consistent. Reuse existing framework settings instead of copying a generic command.Keep versions in GitHub
Create a repository, commit changes, and describe them clearly. Choose visibility and access for the project; public access is not required for a static deployment. [2]Review a Vercel Preview
Connect the repository and check framework, build steps, output directory, and branch. Open the generated preview URL to check the build, links, and page states. Preview and Production serve different purposes. [3]Release after review
Follow the team's release process, check the live domain, and record how to roll back. Use repository settings and actual logs to resolve configuration questions.
The trade-off
Static files keep a small page easy to inspect. More content, data, or build complexity can make that layout hard to maintain. GitHub keeps history and Vercel offers previews, while settings and access still need review.
Release checklist
- Record actual preview and hosting settings in the README.
- Check text, navigation, overflow, and keyboard focus at phone and desktop widths.
- Never commit API keys, tokens, or private configuration to a repository or page.
- After Preview passes, check the production URL and assets.
Frequently asked questions
Does GitHub need to be public?
Can I try a tutorial's build command after a failure?
Official sources
- [1]VS Code: Basic Editingcode.visualstudio.com
- [2]GitHub Docs: Quickstart for Repositoriesdocs.github.com
- [3]Vercel: Deploymentsvercel.com