From 77256febf7889d37372ba1432551847cd1af89bd Mon Sep 17 00:00:00 2001 From: melissag-ensemble Date: Fri, 17 Apr 2026 15:52:31 -0700 Subject: [PATCH] feat: add v2 workflows --- .../workflows/build-auto-generated-files.yml | 3 +- .github/workflows/deploy-private.yml | 35 +++++++++++++++++++ .github/workflows/deploy.yml | 4 ++- .github/workflows/stage-private.yml | 23 ++++++++++++ .github/workflows/stage.yml | 3 +- 5 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy-private.yml create mode 100644 .github/workflows/stage-private.yml diff --git a/.github/workflows/build-auto-generated-files.yml b/.github/workflows/build-auto-generated-files.yml index c926d91..de122db 100644 --- a/.github/workflows/build-auto-generated-files.yml +++ b/.github/workflows/build-auto-generated-files.yml @@ -1,13 +1,12 @@ --- name: Build Auto-Generated Files on: - pull_request: workflow_dispatch: jobs: build-contributors: name: Build Auto-Generated Files if: github.repository != 'AdobeDocs/dev-docs-template' - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files.yml@main + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files-v2.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/deploy-private.yml b/.github/workflows/deploy-private.yml new file mode 100644 index 0000000..798da8a --- /dev/null +++ b/.github/workflows/deploy-private.yml @@ -0,0 +1,35 @@ +--- +name: Production Deployment +on: + push: + branches: + - main + workflow_dispatch: + inputs: + env: + description: "Select environment to deploy to" + type: choice + required: true + default: "prod" + options: + - "prod" + - "stage & prod" + baseSha: + description: "Use base SHA commit to deploy from (empty string defaults to last commit before HEAD)" + type: string + required: false + default: "" + deployAll: + description: "Force deploy all files" + type: boolean + default: false +jobs: + deployment: + name: Deployment + if: github.actor != 'adp-devsite-app[bot]' + uses: AdobeDocsPrivate/adp-devsite-workflow-private/.github/workflows/deploy-v2.yml@main + secrets: inherit + with: + env: ${{ inputs.env || 'prod' }} + baseSha: ${{ inputs.baseSha || '' }} + deployAll: ${{ inputs.deployAll || false }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5891b43..a3fc594 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,7 +26,9 @@ on: jobs: deployment: name: Deployment - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy.yml@main + if: github.actor != 'adp-devsite-app[bot]' + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + secrets: inherit with: env: ${{ inputs.env || 'prod' }} baseSha: ${{ inputs.baseSha || '' }} diff --git a/.github/workflows/stage-private.yml b/.github/workflows/stage-private.yml new file mode 100644 index 0000000..989e37a --- /dev/null +++ b/.github/workflows/stage-private.yml @@ -0,0 +1,23 @@ +--- +name: Staging +on: + workflow_dispatch: + inputs: + baseSha: + description: "Use base SHA commit to deploy from (empty string defaults to last commit before HEAD)" + type: string + required: false + default: "" + deployAll: + description: "Force deploy all files" + type: boolean + default: false +jobs: + deployment: + name: Deployment + uses: AdobeDocsPrivate/adp-devsite-workflow-private/.github/workflows/deploy-v2.yml@main + secrets: inherit + with: + env: stage + baseSha: ${{ inputs.baseSha }} + deployAll: ${{ inputs.deployAll }} diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index c96a42d..d108f50 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -15,7 +15,8 @@ on: jobs: deployment: name: Deployment - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy.yml@main + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + secrets: inherit with: env: stage baseSha: ${{ inputs.baseSha }}