From bce273e1bbb1d1a83bd6af4937024bd4965178aa Mon Sep 17 00:00:00 2001 From: Siarhei Balonikau Date: Thu, 25 Jul 2024 12:09:59 +0400 Subject: [PATCH] hotfix/epmgcip-152/app-variables --- .github/workflows/contentful-merge.yml.yml | 3 ++- .github/workflows/contentful-release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contentful-merge.yml.yml b/.github/workflows/contentful-merge.yml.yml index 04763a7..fa350d7 100644 --- a/.github/workflows/contentful-merge.yml.yml +++ b/.github/workflows/contentful-merge.yml.yml @@ -13,6 +13,8 @@ jobs: node-version: '20' - name: Install dependencies run: npm ci + - name: Set Secrets and Change Dir + run: echo "REACT_APP_DOMAIN=${{ secrets.STAGING_REACT_APP_DOMAIN }}" >> .env - name: Build run: npm run build - name: Deploy @@ -20,5 +22,4 @@ jobs: CONTENTFUL_ACCESS_TOKEN: ${{ secrets.STAGING_CONTENTFUL_ACCESS_TOKEN }} CONTENTFUL_ORG_ID: ${{ secrets.STAGING_CONTENTFUL_ORG_ID }} CONTENTFUL_APP_DEF_ID: ${{ secrets.STAGING_CONTENTFUL_APP_DEF_ID }} - REACT_APP_DOMAIN: ${{ secrets.STAGING_REACT_APP_DOMAIN }} run: npm run upload-ci \ No newline at end of file diff --git a/.github/workflows/contentful-release.yml b/.github/workflows/contentful-release.yml index 63d3408..b5a93f8 100644 --- a/.github/workflows/contentful-release.yml +++ b/.github/workflows/contentful-release.yml @@ -12,6 +12,8 @@ jobs: node-version: '20' - name: Install dependencies run: npm ci + - name: Set Secrets and Change Dir + run: echo "REACT_APP_DOMAIN=${{ secrets.REACT_APP_DOMAIN }}" >> .env - name: Build run: npm run build - name: Deploy @@ -19,5 +21,4 @@ jobs: CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }} CONTENTFUL_ORG_ID: ${{ secrets.CONTENTFUL_ORG_ID }} CONTENTFUL_APP_DEF_ID: ${{ secrets.CONTENTFUL_APP_DEF_ID }} - REACT_APP_DOMAIN: ${{ secrets.REACT_APP_DOMAIN }} run: npm run upload-ci \ No newline at end of file