Skip to content

Instantly share code, notes, and snippets.

@raviagheda
Created December 18, 2021 21:05
Show Gist options
  • Save raviagheda/ec4baf4264219122cf6b420de89532a9 to your computer and use it in GitHub Desktop.
Save raviagheda/ec4baf4264219122cf6b420de89532a9 to your computer and use it in GitHub Desktop.
Angular Firebase CICD

Angular Firebase CICD

Configure firebase token

Apply command firebase login:ci

Pipe line

name: Build and deploy

on:
  push:
    branches: [ main ]
    
  # Run workflow manually
  workflow_dispatch:
  
jobs:
  build:
    name: Build & Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@main
      - name: Install dependencies
        run: npm ci
      - name: Build dependencies
        run: npm run build
      - name: Deploy to Firebase
        uses: w9jds/firebase-action@master
        with:
          args: deploy --only hosting
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment