A GitHub Action that builds and deploys a website to Firebase hosting
name: Push Events
on:
push:
branches:
- dev
- main
deploy-prod:
name: Deploy to production
needs: release-please
if: github.ref_name == 'main' && needs.release-please.outputs.release_created
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: š Deploy
uses: agrc/firebase-website-deploy-composite-action@v1
with:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
build-command: npm run build -- --mode dev
preview: yes
repo-token: ${{ secrets.GITHUB_TOKEN }}
service-now-instance: ${{ secrets.SN_INSTANCE }}
service-now-table: ${{ secrets.SN_TABLE }}
service-now-system-id: ${{ secrets.SN_SYS_ID }}
service-now-username: ${{ secrets.SN_USERNAME }}
service-now-password: ${{ secrets.SN_PASSWORD }}