Skip to content

v3.5.15-0

v3.5.15-0 #1

Workflow file for this run

name: Release Events
on:
release:
types: [published]
workflow_dispatch:
inputs:
environment:
description: 'Environment to run tests against'
type: environment
required: true
permissions:
id-token: write
deployments: write
jobs:
deploy-dev:
name: Deploy to staging
runs-on: ubuntu-latest
environment:
name: dev
url: https://plss.dev.utah.gov
if: github.event.release.prerelease == true
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
env:
VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
VITE_DISCOVER_KEY: ${{ secrets.VITE_DISCOVER_KEY }}
VITE_API_KEY: ${{ secrets.VITE_UGRC_API_KEY }}
deploy-prod:
name: Deploy to production
runs-on: ubuntu-latest
environment:
name: prod
url: https://plss.utah.gov
if: github.event.release.prerelease == false
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 }}
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 }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
build-command: npm run build
env:
VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
VITE_DISCOVER_KEY: ${{ secrets.VITE_DISCOVER_KEY }}
VITE_API_KEY: ${{ secrets.VITE_UGRC_API_KEY }}