@@ -17,9 +17,10 @@ support](https://cloud.google.com/support).**
17
17
blobs to the specified bucket. See the [ Authorization] ( #authorization )
18
18
section below for more information.
19
19
20
- - This action runs using Node 16. If you are using self-hosted GitHub Actions
21
- runners, you must use runner version [ 2.285.0] ( https://github.com/actions/virtual-environments )
22
- or newer.
20
+ - This action runs using Node 24. If you are using self-hosted GitHub Actions
21
+ runners, you must use a [ runner
22
+ version] ( https://github.com/actions/virtual-environments ) that supports this
23
+ version or later.
23
24
24
25
## Usage
25
26
@@ -43,13 +44,13 @@ jobs:
43
44
uses : ' actions/checkout@v4'
44
45
45
46
- id : ' auth'
46
- uses : ' google-github-actions/auth@v2 '
47
+ uses : ' google-github-actions/auth@v3 '
47
48
with :
48
49
workload_identity_provider : ' projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
49
50
service_account :
' [email protected] '
50
51
51
52
- id : ' upload-file'
52
- uses : ' google-github-actions/upload-cloud-storage@v2 '
53
+ uses : ' google-github-actions/upload-cloud-storage@v3 '
53
54
with :
54
55
path : ' /path/to/file'
55
56
destination : ' bucket-name'
@@ -77,13 +78,13 @@ jobs:
77
78
uses: 'actions/checkout@v4'
78
79
79
80
- id: 'auth'
80
- uses: 'google-github-actions/auth@v2 '
81
+ uses: 'google-github-actions/auth@v3 '
81
82
with:
82
83
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
83
84
service_account: '[email protected] '
84
85
85
86
- id: 'upload-folder'
86
- uses: 'google-github-actions/upload-cloud-storage@v2 '
87
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
87
88
with:
88
89
path: '/path/to/folder'
89
90
destination: 'bucket-name'
@@ -113,7 +114,7 @@ With default configuration
113
114
114
115
` ` ` yaml
115
116
- id: 'upload-files'
116
- uses: 'google-github-actions/upload-cloud-storage@v2 '
117
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
117
118
with:
118
119
path: 'myfolder'
119
120
destination: 'bucket-name'
@@ -125,7 +126,7 @@ Optionally, you can also specify a prefix in destination.
125
126
126
127
` ` ` yaml
127
128
- id: 'upload-files'
128
- uses: 'google-github-actions/upload-cloud-storage@v2 '
129
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
129
130
with:
130
131
path: 'myfolder'
131
132
destination: 'bucket-name/myprefix'
@@ -140,7 +141,7 @@ Setting `parent` to false will omit `path` when uploading to bucket.
140
141
141
142
` ` ` yaml
142
143
- id: 'upload-files'
143
- uses: 'google-github-actions/upload-cloud-storage@v2 '
144
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
144
145
with:
145
146
path: 'myfolder'
146
147
destination: 'bucket-name'
@@ -155,7 +156,7 @@ Optionally, you can also specify a prefix in destination.
155
156
156
157
` ` ` yaml
157
158
- id: 'upload-files'
158
- uses: 'google-github-actions/upload-cloud-storage@v2 '
159
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
159
160
with:
160
161
path: 'myfolder'
161
162
destination: 'bucket-name/myprefix'
@@ -170,7 +171,7 @@ You can specify a glob pattern like
170
171
171
172
` ` ` yaml
172
173
- id: 'upload-files'
173
- uses: 'google-github-actions/upload-cloud-storage@v2 '
174
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
174
175
with:
175
176
path: 'myfolder'
176
177
destination: 'bucket-name'
@@ -348,12 +349,12 @@ jobs:
348
349
349
350
steps:
350
351
- id: 'auth'
351
- uses: 'google-github-actions/auth@v2 '
352
+ uses: 'google-github-actions/auth@v3 '
352
353
with:
353
354
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
354
355
service_account: '[email protected] '
355
356
356
- - uses: 'google-github-actions/upload-cloud-storage@v2 '
357
+ - uses: 'google-github-actions/upload-cloud-storage@v3 '
357
358
` ` `
358
359
359
360
# ## Via Application Default Credentials
@@ -368,7 +369,7 @@ jobs:
368
369
job_id:
369
370
steps:
370
371
- id: 'upload-file'
371
- uses: 'google-github-actions/upload-cloud-storage@v2 '
372
+ uses: 'google-github-actions/upload-cloud-storage@v3 '
372
373
` ` `
373
374
374
375
The action will automatically detect and use the Application Default
0 commit comments