Skip to content

Instantly share code, notes, and snippets.

@SamHatoum
Last active June 21, 2020 20:56
Show Gist options
  • Select an option

  • Save SamHatoum/fd42df5b77fae2ceb16c819e5f8db37c to your computer and use it in GitHub Desktop.

Select an option

Save SamHatoum/fd42df5b77fae2ceb16c819e5f8db37c to your computer and use it in GitHub Desktop.
# full file here: https://github.com/xolvio/enterprise-grade-contentful-app-pipelines
name: Contentful Production Workflow
on:
push:
# we want production to be pushed on master pushes only
branches: [master]
jobs:
# setup steps truncated for brevity
- name: Run contentful migrations against Production env
run: npm run migrations src/components/Title src/components/Sections src/components/ServicesPage
env:
CONTENTFUL_MANAGEMENT_API: ${{ secrets.CONTENTFUL_MANAGEMENT_API }}
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_PRODUCTION_SPACE_ID }}
CONTENTFUL_ENVIRONMENT_ID: production
# deploy steps truncated for brevity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment