Skip to content

Simplify CI and keep only EN pages #1

Simplify CI and keep only EN pages

Simplify CI and keep only EN pages #1

name: Deploy Markdown
# Deploys the markdown product family. Push to `production` -> production,
# push to `main` -> staging. Manual runs choose the environment.
on:
push:
branches: [ production, main ]
paths:
- 'content/sites/groupdocs/markdown/**'
workflow_dispatch:
inputs:
environment:
description: 'Target environment'
required: true
default: production
type: choice
options:
- staging
- production
jobs:
deploy:
uses: ./.github/workflows/deploy_product.yml
with:
product_family: markdown
environment: ${{ github.event_name == 'workflow_dispatch' && inputs.environment || (github.ref_name == 'production' && 'production' || 'staging') }}
secrets: inherit