Edits angular pipeline #8
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: Deploy Angular Project to Firebase Hosting | |
on: | |
push: | |
branches: | |
- deployment/frontend | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- name: Install Firebase CLI | |
run: npm install -g firebase-tools | npm uninstall firebase-tools | npm i -g firebase-tools@7.0.2 | |
- name: Install Dependencies | |
run: npm install --legacy-peer-deps | |
working-directory: ./frontend | |
- name: Build Angular Project | |
run: npm run build_prod | |
working-directory: ./frontend | |
- name: Enable to Firebase webframeworks | |
run: firebase experiments:enable webframeworks | |
working-directory: ./frontend | |
- name: Deploy to Firebase Hosting | |
run: firebase deploy --only hosting --token "$FIREBASE_TOKEN" | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
working-directory: ./frontend |