Skip to content

use dpc-app tag_release #24

use dpc-app tag_release

use dpc-app tag_release #24

Workflow file for this run

name: 'Tag and Deploy Site'
on:
workflow_dispatch:
inputs:
deploy:
description: 'Also deploy to staging?'
type: boolean
default: true
required: true
repo_ref:
description: 'Which branch or tag?'
required: true
default: 'main'
type: 'string'
push:
paths:
- .github/workflows/release.yml
jobs:
tag_repo:
name: Tag Repo
uses: CMSgov/dpc-app/.github/workflows/tag_release.yml@jd/dpc-4433-gha-deploy-static
with:
repo_ref: ${{ inputs.repo_ref || 'main' }}
secrets: inherit
deploy:
name: Deploy to Staging
needs: tag_repo
uses: ./.github/workflows/deploy.yml
with:
target_environment: staging
static_repo_ref: ${{ needs.tag_repo.outputs.tag }}
secrets: inherit