GCP Cloud Storage: Deploy
ActionsThis action helps in deploying static websites on the Google Cloud Storage Bucket
v1.0
LatestBy abinmn
Tags
(1)This action helps you in deploying your static website to GCP cloud storage bucket.
Follow this guide to get started. It give detailed instruction on how to make your bucket ready for deployment.
On your workflow file,
- name: Deploy
uses: actions/checkout@v2
uses: abinmn/gcp-storage-bucket-action
with:
service_key: base64 encoded gcp service account key
project: Name of the project that contains the storage bucket.
home_page_path: Path of your homepage in cloud storage bucket
error_page_path: Path of the 404 page to be shown
build_folder: Path of the file to host. Use "${{ github.workspace }}" for the repository.
Obtain the service key for your gcp bucket with the necessary permissions.
On linux base64 /path/to/key.json
will give the base64 encoded version of the key. Save this key as a GitHub secret and use service_key: {{secrets.service_key(or whatever name you gave to the secret)}}
.
GCP Cloud Storage: Deploy is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.