Skip to content

Instantly share code, notes, and snippets.

@beemi
Created October 3, 2021 15:13
Show Gist options
  • Save beemi/6e68f2d1ab3d6330071b67c35d15e482 to your computer and use it in GitHub Desktop.
Save beemi/6e68f2d1ab3d6330071b67c35d15e482 to your computer and use it in GitHub Desktop.
Angular app Firebase Deployment Github actions
on:
push:
tags:
- 'v*'
name: Prod release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
COMMIT_DISABLED: 1
- run: |
sudo npm install
sudo npm install -g @angular/cli > /dev/null
ng config -g cli.warnings.versionMismatch false
ng build --configuration prod --output-path=dist/app --base-href="https://test.domain/"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROD }}'
channelId: live
projectId: test-app
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment