Skip to content

Commit

Permalink
Merge pull request #1 from sliit-foss/feat/staging-preview-deployments
Browse files Browse the repository at this point in the history
Feat: added staging preview deployments
  • Loading branch information
Akalanka47000 authored Aug 27, 2023
2 parents 115a601 + 49c9b92 commit d240291
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/preview-deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy Staging PR preview

on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- development
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
steps:
- name: Checkout repository 🛎️
uses: actions/checkout@v3

- name: Build 🏗️
uses: ./.github/actions/build
env:
VITE_BASHAWAY_BE_URL: ${{ secrets.STAGING_BASHAWAY_BE_URL }}
VITE_APP_ENV: staging

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: bashaway-staging
10 changes: 5 additions & 5 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
VITE_BASHAWAY_BE_URL: ${{ secrets.STAGING_BASHAWAY_BE_URL }}
VITE_APP_ENV: staging

- name: Deploy to Firebase
uses: w9jds/firebase-action@master
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: bashaway-staging
channelId: live

0 comments on commit d240291

Please sign in to comment.