Skip to content

wiki add GCP auth

wiki add GCP auth #4

Workflow file for this run

name: Deploy mdBook to GCS
on:
push:
branches:
- main
- jolt
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY}}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.10'
- run: mdbook build ./book
- name: Deploy to Google Cloud Storage
run: gsutil -m rsync -d -r ./book/book gs://$GCS_BUCKET_NAME