-
Notifications
You must be signed in to change notification settings - Fork 28
61 lines (53 loc) · 1.78 KB
/
static.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
57
58
59
60
61
name: Static Assets
on:
push:
jobs:
policies:
name: Upload Static Assets
runs-on: ubuntu-latest
env:
GITHUB_NPM_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }}
permissions:
contents: "read"
id-token: "write"
deployments: "write"
steps:
- uses: actions/checkout@v4
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v2"
with:
token_format: "access_token"
workload_identity_provider: "projects/914576303414/locations/global/workloadIdentityPools/github-actions-wi-pool/providers/github-actions-wi-provider"
service_account: "[email protected]"
access_token_lifetime: "300s"
- name: Upload Media (png)
uses: "google-github-actions/upload-cloud-storage@v2"
with:
path: public/media/
glob: "**/*.png"
destination: cdn.zuplo.com/docs
process_gcloudignore: false
headers: |-
cache-control: max-age=31536000
content-type: image/png
- name: Upload Media (gif)
uses: "google-github-actions/upload-cloud-storage@v2"
with:
path: public/media/
glob: "**/*.gif"
destination: cdn.zuplo.com/docs
process_gcloudignore: false
headers: |-
cache-control: max-age=31536000
content-type: image/gif
- name: Upload Media (svg)
uses: "google-github-actions/upload-cloud-storage@v2"
with:
path: public/media/
glob: "**/*.svg"
destination: cdn.zuplo.com/docs
process_gcloudignore: false
headers: |-
cache-control: max-age=31536000
content-type: image/svg+xml