-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.24 KB
/
firebase_storage.yml
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
name: Deploy to Firebase Storage
on:
push:
branches:
- main
paths:
- "curriculum.json"
- "en/**"
- "it/**"
- "assets/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Workflow Action
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- id: upload-en
uses: google-github-actions/upload-cloud-storage@v1
with:
path: en
destination: ${{ secrets.BUCKET_NAME }}
- id: upload-it
uses: google-github-actions/upload-cloud-storage@v1
with:
path: it
destination: ${{ secrets.BUCKET_NAME }}
- id: upload-curriculum
uses: google-github-actions/upload-cloud-storage@v1
with:
path: curriculum.json
destination: ${{ secrets.BUCKET_NAME }}
- id: upload-assets
uses: google-github-actions/upload-cloud-storage@v1
with:
path: assets
destination: ${{ secrets.BUCKET_NAME }}