-
Notifications
You must be signed in to change notification settings - Fork 0
GITHUB DEPLOYMENT
AutoBotSolutions edited this page Apr 29, 2026
·
1 revision
This guide explains how to deploy the NEXUS Support System to GitHub and set up GitHub Pages for the website.
- GitHub account
- Git installed locally
- Node.js 14.0.0 or higher
- MongoDB 4.4 or higher (for local development)
If you haven't already initialized the repository:
cd /home/robbie/Desktop/nexus
git init
git add .
git commit -m "Initial commit: NEXUS Support System"- Go to https://github.com/new
- Repository name:
NEXUS-Support-Ticket-System - Owner:
AutoBotSolutions - Set to Public or Private based on your needs
- Do NOT initialize with README, .gitignore, or license
- Click "Create repository"
git remote add origin https://github.com/AutoBotSolutions/NEXUS-Support-Ticket-System.git
git branch -M main
git push -u origin mainCreate .github/workflows/deploy-website.yml:
name: Deploy Website to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './website'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4- Install gh-pages package:
npm install --save-dev gh-pages- Add deploy script to package.json:
"scripts": {
"deploy": "gh-pages -d website"
}- Deploy:
npm run deploy- Go to repository Settings → Pages
- Source: Select "GitHub Actions" (if using Option A) or "Deploy from a branch" (if using Option B)
- If using branch deploy:
- Branch:
gh-pages - Folder:
/root
- Branch:
- Click Save
- Go to repository Settings → Actions → General
- Under "Workflow permissions", select "Read and write permissions"
- Click Save
git add .
git commit -m "Add GitHub Actions for website deployment"
git push origin mainThe website will automatically deploy to:
https://autobotsolutions.github.io/NEXUS-Support-Ticket-System/
Set these in GitHub repository Settings → Secrets and variables → Actions:
-
MONGODB_URI: Your MongoDB connection string -
JWT_SECRET: Secure random string for JWT signing -
GITHUB_WEBHOOK_SECRET: Your GitHub webhook secret -
GITHUB_TOKEN: GitHub personal access token -
GITHUB_REPO_OWNER: AutoBotSolutions -
GITHUB_REPO_NAME: NEXUS-Support-Ticket-System -
NODE_ENV: production -
CORS_ORIGIN: Your domain (if applicable)
- Go to Settings → Pages
- Under "Custom domain", enter your domain
- Update DNS settings with your domain provider
- Enable "Enforce HTTPS"
- Check Actions tab to see deployment status
- Visit your GitHub Pages URL
- Verify all pages load correctly
- Test navigation between pages
- Check Actions tab for error logs
- Verify workflow file is in
.github/workflows/directory - Ensure permissions are set correctly
- Wait a few minutes for DNS propagation
- Check branch name matches deployment settings
- Verify file paths in workflow configuration
- Ensure all links use relative paths
- Check file names match exactly (case-sensitive)
- Verify GitHub Pages URL in _config.yml
- Set up CI/CD for the main application
- Configure automated testing
- Set up monitoring and logging
- Configure backup strategies