Build your first website · Lesson 05

Publish Your
Photography Website.

Today, your website goes live. Connect the tools you already know, publish your portfolio on the Internet, and learn the simple workflow behind every future update.

Complete beginner50–75 minutesNo coding required
A photography portfolio travelling from a local laptop through cloud infrastructure to a live public website
Lesson 05Take your portfolio live

Your goal

From your computer
to the public web.

You already built the homepage. Now you’ll prepare it, send it safely to GitHub, deploy it with Cloudflare, and see how one small change reaches the live website.

Your complete publishing route

Codex
→
GitHub Desktop
→
GitHub
→
Cloudflare
→
●Live website
Prepare the buildPublish onlineTest every screenShip an update

You will not rebuild the site. You are connecting the version you already created in Lesson 04 to a reliable publishing workflow.

01

5 minutes

Understand How Publishing Works

Four familiar tools now become one connected route from your computer to the Internet.

01

Commit

Save a clear version of your project on your computer.

02

Push

Send those saved changes to your GitHub repository.

03

Deploy

Build and publish the website so anyone can visit it.

CodexCreates and improves
GitHub DesktopSaves and sends
GitHubStores the project
CloudflareBuilds and publishes

Checkpoint

02

10–15 minutes

Prepare for Cloudflare Workers

Keep your design exactly as it is while Codex prepares the technical bridge between Astro and Cloudflare.

  1. 01

    Open the existing project

    In Codex, select zia-portfolio—the same project you used in Lesson 04.

  2. 02

    Prepare Astro

    Your portfolio is a static website. Astro creates the finished files before Cloudflare publishes them; you do not need a complicated server.

Send this to Codex

“Prepare my static Astro website for Cloudflare Workers, including the required configuration files. Keep my design unchanged and check that the build works.”

Static Astro modeCloudflare configurationCorrect build outputDesign preservedError-free build

Deployment settings

Build commandnpm run build

Prepares the finished website.

Output directorydist

Contains the website files.

Deploy commandAsk Codex

Use the command confirmed for your project.

You don’t need to memorise these settings or edit technical configuration files yourself.

Safety check

“Check that my project is safe to publish. Make sure no passwords, private files, or unnecessary large photographs are included.”

Commit summaryPrepare website for CloudflareIf no file changed, you do not need another commit.

Checkpoint

03

5 minutes

Send Your Website to GitHub

Your first push sends the local save points from GitHub Desktop to your private online repository.

Local projectmain
→Push origin
GitHub repositoryzia-portfolio
  1. 01

    Open GitHub Desktop

    Select zia-portfolio and make sure the current branch is main.

  2. 02

    Push your project

    Click Push origin and wait until the transfer is complete.

  3. 03

    Check GitHub

    Open your repository online. You should see folders and files such as src, public, and package.json.

Open GitHub ↗

Checkpoint

04

15–25 minutes

Publish With Cloudflare Workers

Connect the repository once, confirm the settings, and let Cloudflare build the first public version.

Open the Cloudflare dashboard ↗
  1. 01

    Open Workers & Pages

    Choose Create application, then look for the option to import a GitHub repository using the Workers deployment flow.

  2. 02

    Connect GitHub

    Authorize access to zia-portfolio. When possible, give Cloudflare access only to this repository.

  3. 03

    Name the Worker

    Use a simple name such as zia-portfolio. If unavailable, choose a clear variation.

  4. 04

    Confirm the configuration

    Use npm run build, dist, and the deploy command Codex confirmed for your project.

  5. 05

    Start the deployment

    Wait for both the Astro build and the Cloudflare deployment to succeed.

1Astro buildProject → finished files✓
→
2Cloudflare deployFinished files → Internet✓

If the deployment fails

Open logs→Copy the error→Ask Codex→Commit + push→Cloudflare retries
Troubleshooting prompt

“My Cloudflare deployment failed. Here’s the error message. Can you help me fix it?”

Checkpoint

05

5–10 minutes

Visit & Test Your Live Website

Cloudflare gives you a public address—usually ending in workers.dev. Open it and test the real experience.

Public websitezia-portfolio.your-account.workers.dev
LIVE
Desktop

Review the homepage

  • Photographs load
  • Text is readable
  • Navigation works
  • Nothing is broken
Phone

Check the mobile view

  • Photos fit the screen
  • Text stays comfortable
  • The menu opens
  • Nothing is cut off

Checkpoint

06

10–15 minutes

Publish Your First Update

Prove that the connection works by sending one small, visible change all the way to the live website.

Choose one simple change

“Make the introduction on my homepage shorter.”

01 ChangeOne clear edit
→
02●PreviewCheck locally
→
03 CommitSave the update
→
04 PushSend to GitHub
→
05 DeployAutomatic
  1. 01

    Make and preview the change

    Open zia-portfolio in Codex, request a small edit, and check the result in your local preview.

  2. 02

    Commit and push

    In GitHub Desktop, use a clear summary such as Update homepage introduction, commit to main, then click Push origin.

  3. 03

    Watch Cloudflare

    A new deployment should start automatically. You should not need to click Deploy again.

  4. 04

    Verify the live update

    Refresh the public website and confirm that your change is visible.

Checkpoint

End of lesson 05

Your portfolio is live.

You prepared Astro, sent the project to GitHub, connected Cloudflare Workers, tested the public website, and published your first automatic update.

PreparePushConnectDeployTestUpdate
Coming next · Lesson 06Create & Organize Website Pages

Understand pages, sections and navigation, then organize and safely publish changes to your portfolio.