/github-for-non-tech

How to publish an app from GitHub?

Learn how to publish an app from GitHub: create a repository, push your code, enable GitHub Pages, verify your site, and set up a custom domain if needed.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to publish an app from GitHub?

 
Step 1: Create or Choose Your Repository
 

First, sign in to your GitHub account. You can either create a new repository or use an existing one that contains your web application code.

  • To create a new repository, click the “+” icon in the top-right corner and select “New repository.”
  • Give it a descriptive name (for example, my-web-app), add an optional description, and choose public or private visibility.
  • Optionally initialize with a README.md, a .gitignore, and a license.

 
Step 2: Push Your Local Code to GitHub
 

If your app code is on your local machine, follow these commands to push it up:


# Navigate into your project folder
cd path/to/your-project

# Initialize a new Git repository (if you haven't already)
git init

# Add all files and make your first commit
git add .
git commit -m "Initial commit of my web app"

# Add the GitHub repo as a remote (replace URL with your repo URL)
git remote add origin https://github.com/your-username/my-web-app.git

# Push your code to the main branch
git push -u origin main
  • If you used a different default branch (for example, master), replace main accordingly.
  • After pushing, refresh your repository page on GitHub to verify that the files appear.

 
Step 3: Configure GitHub Pages
 

GitHub Pages will host your static site directly from your repo. To enable it:

  • Go to your repository on GitHub.
  • Click on the “Settings” tab.
  • In the sidebar, select “Pages.”
  • Under “Source,” choose the branch you want to publish (usually main) and the folder (/ (root) for static files in the repo root, or /docs if you keep your built site there).
  • Click “Save.” GitHub Pages will display a confirmation and the URL where your site will be available.

 
Step 4: Verify Your Published App
 

After a few seconds, your site will be live at the URL shown in the Pages settings (for example, https://your-username.github.io/my-web-app).

  • Open that URL in your browser.
  • If you make changes to your code, commit and push them to the configured branch—GitHub Pages redeploys automatically.

 
Step 5: (Optional) Set Up a Custom Domain
 

If you have your own domain name, you can point it to your GitHub Pages site.

  • Create a file named CNAME in your repository’s root (or in /docs if that’s your Pages folder) containing just your custom domain (e.g., www.example.com).
  • Commit and push the CNAME file. GitHub Pages reads it and configures your site to use that domain.
  • In your DNS provider’s settings, add a CNAME record pointing www to your-username.github.io. If you want an apex domain (example.com), use A records pointing to GitHub’s IP addresses.
  • Back in the Pages settings, verify that your custom domain is listed and that HTTPS is enabled.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022