Skip to content

Delete .env

Delete .env #26

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Store variables 🔐
run: |
touch .env
REACT_APP_BASE_URL=${{ secrets.REACT_APP_BASE_URL }} >> .env
REACT_APP_API_HOST=${{ secrets.REACT_APP_API_HOST }} >> .env
REACT_APP_API_KEY=${{ secrets.REACT_APP_API_KEY }} >> .env
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
yarn install --frozen-lockfile
CI=false
yarn build
env:
REACT_APP_BASE_URL: ${{ secrets.REACT_APP_BASE_URL }}
REACT_APP_API_HOST: ${{ secrets.REACT_APP_API_HOST }}
REACT_APP_API_KEY: ${{ secrets.REACT_APP_API_KEY }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.
branch: gh-pages