You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-44Lines changed: 11 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,16 @@
1
-
<!--
2
-
Copyright 2020 Google LLC
3
-
4
-
Licensed under the Apache License, Version 2.0 (the "License");
5
-
you may not use this file except in compliance with the License.
6
-
You may obtain a copy of the License at
7
-
8
-
http://www.apache.org/licenses/LICENSE-2.0
9
-
10
-
Unless required by applicable law or agreed to in writing, software
11
-
distributed under the License is distributed on an "AS IS" BASIS,
12
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
-
See the License for the specific language governing permissions and
14
-
limitations under the License.
15
-
-->
16
-
17
1
# upload-cloud-storage
18
2
19
-
This action uploads files/folders to a [Google Cloud Storage (GCS)][gcs] bucket. This is useful when
20
-
you want upload build artifacts from your workflow.
3
+
The `upload-cloud-storage` GitHub Action uploads files to a [Google Cloud
4
+
Storage (GCS)][gcs] bucket.
21
5
22
-
Paths to files that are successfully uploaded are set as output variables and can be
23
-
used in subsequent steps.
6
+
Paths to files that are successfully uploaded are set as output variables and
7
+
can be used in subsequent steps.
24
8
25
9
## Prerequisites
26
10
27
11
- This action requires Google Cloud credentials that are authorized to upload
28
-
blobs to the specified bucket. See the Authorization section below for more
29
-
information.
12
+
blobs to the specified bucket. See the [Authorization](#authorization)
13
+
section below for more information.
30
14
31
15
- This action runs using Node 16. If you are using self-hosted GitHub Actions
32
16
runners, you must use runner version [2.285.0](https://github.com/actions/virtual-environments)
@@ -295,8 +279,7 @@ If `parent` is set to `false`, it wil be uploaded to `gs://bucket-name/folder2/f
295
279
```
296
280
297
281
- `project_id`- (Optional) Google Cloud project ID to use for billing and API
298
-
requests. By default, this is extracted from the credentials or the running
299
-
environment.
282
+
requests. By default, this is extracted from the running environment.
300
283
301
284
```yaml
302
285
project_id: 'my-project'
@@ -332,11 +315,9 @@ permissions to access the secrets being requested.
332
315
333
316
### Via google-github-actions/auth
334
317
335
-
Use [google-github-actions/auth](https://github.com/google-github-actions/auth) to authenticate the action. You can use [Workload Identity Federation][wif] or traditional [Service Account Key JSON][sa] authentication by specifying the `credentials` input. This Action supports both the recommended [Workload Identity Federation][wif] based authentication and the traditional [Service Account Key JSON][sa] based auth.
336
-
337
-
See [usage](https://github.com/google-github-actions/auth#usage) for more details.
338
-
339
-
#### Authenticating via Workload Identity Federation
318
+
Use [google-github-actions/auth](https://github.com/google-github-actions/auth)
319
+
to authenticate the action. You can use [Workload Identity Federation][wif] or
320
+
traditional [Service Account Key JSON][sa] authentication.
0 commit comments