firebase-hosting preview deploys

This commit is contained in:
shamsmosowi
2022-01-03 23:32:57 +07:00
parent 813d68064e
commit a830ff259e
2 changed files with 21 additions and 1 deletions

21
.github/workflows/deploy-preview.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Deploy to Preview Channel
on:
pull_request:
# Optionally configure to run only for specific files. For example:
# paths:
# - "website/**"
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Add any build steps here. For example:
# - run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
expires: 30d
projectId: tryrowy