Skip to content

Add the preview deploy action #1

Add the preview deploy action

Add the preview deploy action #1

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@v4
# Add any build steps here. For example:
# - run: npm ci && npm run build
- run: yarn install
- run: yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GATSBYWEB }}'
expires: 30d
projectId: ${{ secrets.PROJECT_ID }}
channelId: preview