github-pages-deploy-action

(β˜… 4,601)

πŸš€ Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.

  • .gitignore
  • .node-version
  • .prettierignore
  • .prettierrc.json
  • action.yml
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • eslint.config.mjs
  • jest.config.cjs
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • SECURITY.md
  • tsconfig.json
  • tsconfig.lint.json

πŸš€ Installation Guide

1. Get the code
git clone https://github.com/JamesIves/github-pages-deploy-action

Downloads the entire project code from GitHub to your computer.

cd github-pages-deploy-action

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
- name: Install and Build πŸ”§ # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.

Type this command into your terminal and run it.

npm ci

Type this command into your terminal and run it.

npm run build

Builds optimized production files.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation