GitHub action to upload a file from Google Drive.
For instructions on how to set up service account required to download file, please follow this steps:
- Create a project in the Google Cloud Platform Console .
- Enable Google Drive API in new project.
- Create a service account for new project.
- Create authentication keys for the service account and download it as json file.
- Share the file that you want to download to the service account in google drive.
- Encode your service account json file content to base64 and store in your action secret
- file-path: Path of file that need to be uploaded
- service-account-json: base64 encoded of service account json file
- upload-name: Uploaded file name that store on drive
- upload-to-folder-id: Folder that should contains uploaded file
- overrwrite: Overwrite existed filed or not
- file-id: File id of uploaded file
- web-content-link: Link download as web content
- web-view-link: Link download as web view