Skip to content

Update google-github-actions/setup-gcloud action to v2 (#232) #10

Update google-github-actions/setup-gcloud action to v2 (#232)

Update google-github-actions/setup-gcloud action to v2 (#232) #10

Workflow file for this run

on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Authenticate with GCP
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_ACCOUNT_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Remove previous local docs
run: rm -rf docs
- name: Build docs
run: ./build-docs.sh
- name: Publish to GCS
run: |
gsutil rm -r gs://cognite-seismic-api-docs/proto || true
gsutil cp -r docs/docs gs://cognite-seismic-api-docs/proto
gsutil cp CHANGELOG.md gs://cognite-seismic-api-docs/proto/CHANGELOG.md