Skip to content

EPMGCIP-169: Create new content model "Exhibitions" and link to "Exhi… #4

EPMGCIP-169: Create new content model "Exhibitions" and link to "Exhi…

EPMGCIP-169: Create new content model "Exhibitions" and link to "Exhi… #4

'on':
push:
branches:
- main
paths:
- img-region-select-app/**
- .github/workflows/contentful-image-merge.yml
- .github/workflows/contentful-image-release.yml
- .github/workflows/image-pull-request.yml
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
cd img-region-select-app
npm ci
- name: Set Secrets and Change Dir
run: |
cd img-region-select-app
echo "REACT_APP_CONTENTFUL_SPACE=${{ secrets.STAGING_CONTENTFUL_SPACE }}" >> .env
echo "REACT_APP_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN=${{ secrets.STAGING_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN }}" >> .env
- name: Build
run: |
cd img-region-select-app
npm run build
- name: Deploy
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.STAGING_CONTENTFUL_ACCESS_TOKEN }}
CONTENTFUL_ORG_ID: ${{ secrets.STAGING_CONTENTFUL_ORG_ID }}
CONTENTFUL_APP_DEF_ID: ${{ secrets.STAGING_CONTENTFUL_IMAGE_APP_DEF_ID }}
run: |
cd img-region-select-app
npm run upload-ci