paltiverse-actions/.github/workflows/firebase-hosting-deploy.yml

36 lines
952 B
YAML
Raw Permalink Normal View History

2024-01-16 13:23:58 +00:00
name: Firebase Hosting
on:
workflow_call:
secrets:
FIREBASE_SA:
required: true
2024-01-16 13:29:51 +00:00
inputs:
built-app-dir:
default: dist
type: string
2024-01-16 13:23:58 +00:00
jobs:
deploy-firebase:
name: Deploy to Firebase Hosting
runs-on: ubuntu-latest
container: alpine:3.19
steps:
- run: apk add git nodejs npm
name: Install dependencies
- run: npm install -g firebase-tools
name: Install Firebase CLI from NPM
- uses: actions/checkout@v3
- name: Download built app
uses: actions/download-artifact@v3
with:
name: built-app
path: dist
- run: echo $FIREBASE_SA > gcloud-service-key.json
name: Generate Service Account file
env:
FIREBASE_SA: ${{ secrets.FIREBASE_SA }}
2024-01-16 13:29:51 +00:00
- run: firebase deploy --only hosting
2024-01-16 13:23:58 +00:00
name: Run deploy command
env:
GOOGLE_APPLICATION_CREDENTIALS: gcloud-service-key.json