-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(main): release push-to-gcs 0.1.1
- Loading branch information
1 parent
c4422fc
commit 9804e0b
Showing
3 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,77 +29,77 @@ jobs: | |
id: login-to-gcs | ||
|
||
# Upload a single file to the bucket root | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: file.txt | ||
environment: "dev" # Can be dev/prod (defaults to dev) | ||
|
||
# Upload a single file and apply a predefined ACL. See `predefinedAcl` for options. | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: file.txt | ||
predefinedAcl: projectPrivate | ||
environment: "dev" | ||
|
||
# Here are 3 equivalent statements to upload a single file and its parent directory to the bucket root | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder/file.txt | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: . | ||
glob: "folder/file.txt" | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder | ||
glob: "file.txt" | ||
|
||
# Here are 2 equivalent statements to upload a single file WITHOUT its parent directory to the bucket root | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder/file.txt | ||
parent: false | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder | ||
glob: "file.txt" | ||
parent: false | ||
|
||
# Here are 2 equivalent statements to upload a directory with all subdirectories | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder/ | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: . | ||
glob: "folder/**/*" | ||
|
||
# Specify a bucket prefix with `bucket_path` | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
name: upload-yaml-to-some-path | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: file.txt | ||
bucket_path: some-path/ | ||
|
||
# Upload all files of a type | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder/ | ||
glob: "*.txt" | ||
|
||
# upload all files of a type recursively | ||
- uses: grafana/shared-workflows/actions/[email protected].0 | ||
- uses: grafana/shared-workflows/actions/[email protected].1 | ||
with: | ||
bucket: ${{ steps.login-to-gcs.outputs.bucket }} | ||
path: folder/ | ||
|