DevDoc Deployment Guide

This guide explains how to set up and use the Adobe Developer Platform (ADP) deployment workflow for your developer site.

Overview

The ADP developer site uses a reusable GitHub Actions workflow that handles deployments with:

Quick Start

To enable deployments for your repository, ensure your repo has the workflow file at .github/workflows/deploy.yml and .github/workflows/stage.yml. Both shuld point to the re-useable workflow file AdobeDocs/adp-devsite-workflow/.github/workflows/deploy.yml@main:

This configuration enables both automatic and manual deployments for your site.

Deployment Methods

Automatic Production Deployment

Trigger: Push commits to the main branch

When you merge a pull request or push directly to main, the workflow automatically:

  1. Detects all changed files in src/pages/
  2. Deploys only those changes to production
  3. Clears cache to ensure visitors see the latest content

This is the recommended approach for regular content updates and ensures your site stays in sync with your repository.

Manual Production Deployment

Trigger: GitHub Actions UI > Run workflow

Navigate to Actions > Deployment > Run workflow to access manual deployment options:

Deployment Options

Environment Selection

Base SHA (optional)

Deploy All Files

Manual Staging Deployment From a Branch

Trigger: GitHub Actions UI > Run workflow

Navigate to Actions > Staging > Run workflow to access manual staging deployment options:

Deployment Options

Branch Selection

Base SHA (optional)

Deploy All Files

Deployment Workflows

Production Deployment

Production deployments follow this process:

  1. Change Detection

    • Compares current commit with the last successful deploy on main
    • Identifies modified files in src/pages/**
    • Tracks deleted files for cleanup
    • If unable to find the last successful deploy, it will attempt to compare the changes between the last commit and the current commit on main
  2. Preview Stage (Step 1 of 2)

    • Uploads content to production environment in preview mode
    • Content is staged but on the https://stage--adp-devsite-stage--adobedocs.aem.page/pathPrefix/ and developer-stage.adobe.com/pathPrefix/ url
    • Allows for validation before going live
    • content for production always must be Preview before it appears on `Live'
  3. Live Stage (Step 2 of 2)

    • Activates the previewed content after a 60-second delay
    • Content becomes publicly accessible on the https://main--adp-devsite--adobedocs.aem.page/pathPrefix/ and the developer.adobe.com/pathPreix/
    • Cache is cleared to ensure fresh content delivery

Important note:

Stage Deployment

When deploying to the stage environment:

  1. Stage Deployment

    • Deploys changes to staging environment based on the last successful commit to the staging environment
    • Clears stage cache
    • Allows for testing in a production-like environment
  2. Preview Stage (Step 1 of 2)

    • Uploads content to production environment in preview mode
    • Content is staged but on the https://stage--adp-devsite-stage--adobedocs.aem.page/pathPrefix/ and developer-stage.adobe.com/pathPrefix/ url
    • Allows for validation before going live

Incremental Deployment (Default)

When to use:

How it works:

Benefits:

Full Deployment (deployAll: true)

When to use:

How it works:

Caution: Full deployments take significantly longer and consume more resources. Use sparingly for the scenarios listed above.

Best Practices

  1. Develop in a feature branch

    • Create branches for new features or content updates
    • Test locally using the development server
  2. Create a pull request

    • Request review from team members
    • Your repo also comes with auto PR validators which will help your lint your files
  3. Merge to main

    • Automatically triggers production deployment
    • Monitor deployment in GitHub Actions
  4. Verify changes

    • Check your live site after deployment
    • Cache clearing ensures changes are immediately visible

When to Use Manual Deployments

Stage & Prod deployment - Use when:

Custom base SHA - Use when:

Deploy all files - Use when:

Deployment Monitoring

After triggering a deployment:

  1. Navigate to GitHub Actions

    • Go to your repository's Actions tab
    • Click on the running workflow
  2. Monitor progress

    • View real-time logs for each step
    • Check for any errors or warnings
    • Verify which files are being deployed
  3. Validate deployment

    • Visit your site after completion
    • Check that changes are visible
    • Test affected pages and features
  4. Deployment overview

Troubleshooting

Common Issues

No Files Deployed

Symptoms: Workflow completes successfully but site hasn't changed

Solutions:

Stale Content Visible

Symptoms: Deployment succeeded but old content still shows

Solutions:

Deployment Failed — Branch Name Contains Slash

Symptoms: Deployment fails when deploying from a branch

Solution: Branch names cannot include slashes. Rename your branch (e.g., feature/my-branchfeature-my-branch) and deploy again.

Stale Content On Navigation

Symptoms: Deployment succeeded but old navigation shows on site after deployment

Solutions:

Contributors, SideNav, or Get Credentials Blocks Missing on a Private Repo

Symptoms: Contributors, SideNav, or Get Credentials blocks are not rendering on a private repo

Solutions:

Build Contributors or Build Site Metadata Failing with a Push Rejection

Symptoms: Build Contributors or Build Site Metadata fails because it cannot push auto-generated files to main

Solutions:

Getting Help

If you encounter issues not covered in this guide:

  1. Review the workflow logs in GitHub Actions for detailed error messages
  2. Contact your Adobe Developer Platform support team in the slack channel #adobe-developer-website

Additional Resources