Skip to the content.

GitHub Pages Deployment Checklist

✅ Pre-Deployment

1. Review and Update Content

2. Customize Branding

🚀 Deployment Steps

Step 1: Prepare Repository

1
2
3
4
5
6
7
8
9
10
# Create a new repository on GitHub
# Clone it locally
git clone https://github.com/your-username/altafid-api-docs.git
cd altafid-api-docs

# Copy all files to the repository
cp -r /path/to/generated/files/* .

# Review structure
ls -la

Step 2: Commit and Push

1
2
3
4
5
6
7
8
# Add all files
git add .

# Commit
git commit -m "Initial commit: Altafid API documentation"

# Push to GitHub
git push origin main

Step 3: Enable GitHub Pages

  1. Go to your repository on GitHub
  2. Click Settings
  3. Scroll to Pages section (left sidebar)
  4. Under Source:
    • Select branch: main
    • Select folder: / (root)
  5. Click Save

Step 4: Wait for Deployment

🌐 Custom Domain Setup (Optional)

Step 1: Add CNAME File

1
2
3
4
5
6
7
# Create CNAME file with your domain
echo "docs.altafid.com" > CNAME

# Commit and push
git add CNAME
git commit -m "Add custom domain"
git push

Step 2: Configure DNS

Option A: CNAME Record (Subdomain)

Add this DNS record to your domain provider:

1
2
3
4
Type:  CNAME
Host:  docs (or your subdomain)
Value: your-username.github.io
TTL:   3600

Option B: A Records (Apex Domain)

Add these DNS records:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Type:  A
Host:  @
Value: 185.199.108.153
TTL:   3600

Type:  A
Host:  @
Value: 185.199.109.153
TTL:   3600

Type:  A
Host:  @
Value: 185.199.110.153
TTL:   3600

Type:  A
Host:  @
Value: 185.199.111.153
TTL:   3600

Step 3: Update Repository Settings

  1. Go to Settings → Pages
  2. Enter your custom domain (e.g., docs.altafid.com)
  3. Wait for DNS check to complete
  4. Enable Enforce HTTPS

Step 4: Wait for DNS Propagation

🔍 Post-Deployment Verification

Test All Pages

Test Functionality

Performance Check

🐛 Common Issues & Solutions

Issue: 404 Error

Solutions:

Issue: CSS Not Loading

Solutions:

Issue: Custom Domain Not Working

Solutions:

Solutions:

📱 Mobile Testing

Test on multiple devices:

🎯 SEO Optimization

Before Launch

After Launch

📊 Analytics Setup (Optional)

Google Analytics

  1. Create GA4 property
  2. Get measurement ID
  3. Add tracking code to all pages:
1
2
3
4
5
6
7
8
<!-- Before closing </head> tag -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

🔄 Continuous Deployment

Automatic Deployment

GitHub Pages automatically rebuilds when you push to the main branch:

1
2
3
4
5
6
7
8
# Make changes locally
# Test changes
# Commit and push
git add .
git commit -m "Update documentation"
git push origin main

# Site automatically rebuilds (1-5 minutes)

Manual Deployment Workflow

  1. Edit files locally
  2. Test with local server
  3. Commit to feature branch
  4. Create pull request
  5. Review changes
  6. Merge to main
  7. Automatic deployment

📝 Maintenance Checklist

Monthly

Quarterly

Annually

🆘 Emergency Rollback

If you need to revert changes:

1
2
3
4
5
6
7
# Revert last commit
git revert HEAD
git push origin main

# Or rollback to specific commit
git reset --hard COMMIT_HASH
git push --force origin main

📧 Support Contacts

🎉 Launch Announcement

After successful deployment:

  1. Announce internally
  2. Update public documentation
  3. Send email to stakeholders
  4. Post on social media
  5. Update other documentation links

Good luck with your deployment! 🚀

Remember: Test thoroughly before announcing publicly