feat: wire filing status from user profile instead of hardcoded 'sing… #23
This file contains hidden or 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: Deploy to Firebase | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install frontend dependencies | |
| run: npm ci --prefix frontend | |
| - name: Build frontend | |
| run: npm run build --prefix frontend | |
| env: | |
| VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }} | |
| VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }} | |
| VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }} | |
| VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }} | |
| VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }} | |
| VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }} | |
| VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }} | |
| - name: Install functions dependencies | |
| run: npm ci --prefix functions | |
| - name: Build functions | |
| run: npm run build --prefix functions | |
| - name: Deploy to Firebase | |
| run: | | |
| echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > /tmp/sa.json | |
| echo "GOOGLE_GENAI_API_KEY=${{ secrets.GOOGLE_GENAI_API_KEY }}" > functions/.env.taxfront-1e142 | |
| npm install -g firebase-tools | |
| GOOGLE_APPLICATION_CREDENTIALS=/tmp/sa.json firebase deploy --project taxfront-1e142 --non-interactive --debug 2>&1 | |
| EXIT=$? | |
| rm -f /tmp/sa.json functions/.env.taxfront-1e142 | |
| exit $EXIT |