Skip to content

Commit

Permalink
Add: firebase deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinjamul committed Aug 30, 2021
1 parent 5f2995e commit 5451536
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy

on:
push:
# branches: [ "main","master" ]
# Publish tags as releases.
tags: ["v*.*.*"]
# This command allows us to run the Action manually from the Actions tab.
workflow_dispatch:

jobs:

deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Get Firebaserc
run: echo "$FIREBASERC" > .firebaserc
env:
FIREBASERC: ${{ secrets.FIREBASERC }}
- name: Get firebase.json
run: echo "$FIREBASE" > firebase.json
env:
FIREBASE: ${{ secrets.FIREBASE }}
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 comments on commit 5451536

Please sign in to comment.