Updated the following docs as per new UI #473
Workflow file for this run
This file contains 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
name: 'CI' | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update package information with default mirror | |
run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update | |
- name: Install libvips | |
run: sudo apt-get install libvips | |
- uses: actions/checkout@v2 | |
- name: Setup Node 12 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- name: Install dependencies | |
run: | | |
npm i --force --unsafe-perm | |
- name: Force installing sharp | |
run: npm install --ignore-scripts=false --verbose [email protected] | |
- name: 'Create env file' | |
run: | | |
touch .env | |
echo GATSBY_ALGOLIA_APP_ID=${{ secrets.GATSBY_ALGOLIA_APP_ID }} >> .env | |
echo GATSBY_ALGOLIA_SEARCH_KEY=${{ secrets.GATSBY_ALGOLIA_SEARCH_KEY }} >> .env | |
echo ALGOLIA_ADMIN_KEY=${{ secrets.ALGOLIA_ADMIN_KEY }} >> .env | |
echo BUCKET_NAME=${{ secrets.BUCKET_NAME }} >> .env | |
echo HOST_NAME=${{ secrets.HOST_NAME }} >> .env | |
echo ASSET_HOST=${{ secrets.ASSET_HOST }} >> .env | |
echo FRESHCHAT_TOKEN=${{ secrets.FRESHCHAT_TOKEN }} >> .env | |
echo GA_TRACKING_ID=${{ secrets.GA_TRACKING_ID }} >> .env | |
echo GTAG_TRACKING_ID_FOR_GA4=${{ secrets.GTAG_TRACKING_ID_FOR_GA4 }} >> .env | |
echo GTAG_TRACKING_ID_FOR_GTAG=${{ secrets.GTAG_TRACKING_ID_FOR_GTAG }} >> .env | |
echo TYPESENSE_HOST=${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }} >> .env | |
echo TYPESENSE_PORT=${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }} >> .env | |
echo TYPESENSE_PROTOCOL=${{ secrets.WEBSITE_STAGING_TYPESENSE_PROTOCOL }} >> .env | |
echo TYPESENSE_COLLECTION=${{ secrets.WEBSITE_STAGING_TYPESENSE_COLLECTION }} >> .env | |
echo TYPESENSE_API_KEY=${{ secrets.WEBSITE_STAGING_TYPESENSE_API_KEY }} >> .env | |
echo TYPESENSE_SEARCH_API_KEY=${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }} >> .env | |
cat .env | |
- name: Build | |
run: | | |
PREFIX_PATHS=true npm run build |