Skip to content

Commit

Permalink
Fix deploy-dev github action (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSoroka07 authored Oct 31, 2024
1 parent 6aff847 commit fb1f94e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ name: Deploy to dev (AWS S3)
env:
AWS_S3_BUCKET_NAME : rpp-landing
AWS_REGION_NAME : eu-central-1
BUILD_DIR : public/
CONTACT_US_URL: https://testio--partial.sandbox.my.salesforce-sites.com/leadcapture/services/apexrest/leadservice
DOCUMENTATION_URL: //reportportal.io/docs
GTM_ID: GTM-MK7ZHTL
CLOUDFRONT_ID: EILUB1IE9EON0
GATSBY_MAILCHIMP_LIST_ID: ca6d0eec5b
CONTENTFUL_ENV_ID: master
CONTENTFUL_HOST: cdn.contentful.com
BUILD_DIR : public/

on:
push:
Expand Down Expand Up @@ -88,6 +82,12 @@ jobs:
run: |
touch .env.production
CONTACT_US_URL=https://testio--partial.sandbox.my.salesforce-sites.com/leadcapture/services/apexrest/leadservice
DOCUMENTATION_URL=//reportportal.io/docs
GTM_ID=GTM-MK7ZHTL
GATSBY_MAILCHIMP_LIST_ID=ca6d0eec5b
CONTENTFUL_ENV_ID=master
CONTENTFUL_HOST=cdn.contentful.com
CONTENTFUL_ACCESS_TOKEN=${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
Expand All @@ -98,14 +98,14 @@ jobs:
CONTENTFUL_ACCESS_TOKEN=${{ secrets.CONTENTFUL_PREVIEW_ACCESS_TOKEN_DEV }}
fi
fi
echo CONTENTFUL_ENV_ID=$CONTENTFUL_ENV_ID >> $GITHUB_ENV
echo CONTENTFUL_HOST=$CONTENTFUL_HOST >> $GITHUB_ENV
echo CONTENTFUL_ENV_ID=$CONTENTFUL_ENV_ID >> .env.production
echo CONTENTFUL_HOST=$CONTENTFUL_HOST >> .env.production
echo CONTENTFUL_ACCESS_TOKEN=$CONTENTFUL_ACCESS_TOKEN >> .env.production
echo CONTENTFUL_SPACE_ID=${{ secrets.CONTENTFUL_SPACE_ID_DEV }} >> .env.production
echo GTM_ID=${{ env.GTM_ID }} >> .env.production
echo CONTACT_US_URL=${{ env.CONTACT_US_URL }} >> .env.production
echo DOCUMENTATION_URL=${{ env.DOCUMENTATION_URL }} >> .env.production
echo GATSBY_MAILCHIMP_LIST_ID=${{ env.GATSBY_MAILCHIMP_LIST_ID }} >> .env.production
echo GTM_ID=$GTM_ID >> .env.production
echo CONTACT_US_URL=$CONTACT_US_URL >> .env.production
echo DOCUMENTATION_URL=$DOCUMENTATION_URL >> .env.production
echo GATSBY_MAILCHIMP_LIST_ID=$GATSBY_MAILCHIMP_LIST_ID >> .env.production
- name: Build the source code
run: npm run build
Expand Down

0 comments on commit fb1f94e

Please sign in to comment.