-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yaml
56 lines (52 loc) · 1.89 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'Firebase Deployment'
author: 'Scheduling Workbox System <[email protected]>'
description: 'A GitHub Action to deploy to Firebase'
inputs:
workloadIdentityProvider:
description: 'The full identifier of the Workload Identity Provider, including the project number, pool name, and provider name. This must be the full identifier which includes all parts'
required: true
serviceAccount:
description: 'Email address or unique identifier of the Google Cloud service account for which to generate credentials'
required: true
project:
description: 'Name of the firebase project you will deploy the site'
required: true
config:
description: 'Path to the firebase.json config file'
required: false
function:
description: 'Deploy only firebase functions'
required: false
hosting:
description: 'Deploy only hosting site'
required: false
node-version:
description: 'NodeJS Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
required: false
default: 'current'
runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: ${{ inputs.node-version }}
- name: Install Firebase CLI
run: npm install -g firebase-tools
shell: bash
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f'
with:
workload_identity_provider: ${{ inputs.workloadIdentityProvider }}
service_account: ${{ inputs.serviceAccount }}
- name: Run Deployment
env:
project: ${{ inputs.project }}
config: ${{ inputs.config }}
function: ${{ inputs.function }}
hosting: ${{ inputs.hosting }}
run: node ${{github.action_path}}/dist/index.js
shell: bash
branding:
icon: 'upload-cloud'
color: 'purple'