Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/animmouse/setup-gdrive
Setup/Install gdrive (Google Drive CLI Client) for GitHub Actions
https://github.com/animmouse/setup-gdrive
action actions gdrive github-actions google-drive google-storage
Last synced: about 1 month ago
JSON representation
Setup/Install gdrive (Google Drive CLI Client) for GitHub Actions
- Host: GitHub
- URL: https://github.com/animmouse/setup-gdrive
- Owner: AnimMouse
- License: mpl-2.0
- Created: 2021-10-22T03:42:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-12T08:10:46.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T05:16:20.856Z (2 months ago)
- Topics: action, actions, gdrive, github-actions, google-drive, google-storage
- Homepage: https://github.com/marketplace/actions/setup-gdrive
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup gdrive for GitHub Actions
Setup [gdrive](https://github.com/prasmussen/gdrive) (Google Drive CLI Client) on GitHub Actions to use `gdrive`.This action installs [gdrive](https://github.com/prasmussen/gdrive) for use in actions by installing it on `/usr/local/bin/`.
With gdrive, you can now interact with Google Drive like uploading and downloading files inside GitHub Actions.
This action requires you to use a Google Service Account with a JSON key encoded in base64.
Other virtual environments besides Ubuntu are not supported yet.
## Deprecation
This action is deprecated, please use [AnimMouse/setup-rclone](https://github.com/AnimMouse/setup-rclone) instead.## Usage
To use `gdrive`, run this action before `gdrive`.Always add `--service-account gdrive.json` on `gdrive` so that the service account will be used, it will fail if you did not add that option.
Encode the JSON key in base64 using this command `base64 -w 0 service-account-example.json` and paste the base64 string to `GOOGLE_SERVICE_ACCOUNT` secret.
```yaml
steps:
- name: Setup gdrive
uses: AnimMouse/setup-gdrive@v3
with:
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- run: gdrive --service-account gdrive.json about
```