Created
October 3, 2021 15:13
-
-
Save beemi/6e68f2d1ab3d6330071b67c35d15e482 to your computer and use it in GitHub Desktop.
Angular app Firebase Deployment Github actions
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
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