Skip to content

Reference secret not environment variable #6

Reference secret not environment variable

Reference secret not environment variable #6

Workflow file for this run

name: CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
cd hosting
echo "REACT_APP_ENV=production" >> .env
npm ci
npm run build
deploy:
runs-on: ubuntu-latest
environment:
name: Production
url: https://crt.codesupport.dev
if: github.ref == 'refs/heads/master'
needs:
- build
steps:
- uses: actions/checkout@v3
- run: npx firebase-tools deploy --token "${{ secrets.FIREBASE_TOKEN }}"