-
-
Save SamHatoum/fd42df5b77fae2ceb16c819e5f8db37c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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