Skip to content

Merge branch 'release/1.8' #14

Merge branch 'release/1.8'

Merge branch 'release/1.8' #14

Workflow file for this run

name: Publish docs.k8ssandra.io
on:
push:
tags:
- 'docs-v*.*.*'
- 'docs-v*.*.*-*'
- 'v*.*.*'
jobs:
build_and_publish:
name: Build and publish docs.k8ssandra.io
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3
name: Checkout code w/ submodules
with:
submodules: recursive
- uses: google-github-actions/[email protected]
name: Setup gcloud
with:
project_id: ${{ secrets.GCP_DOCS_PROD_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_DOCS_PROD_SA_KEY }}
export_default_credentials: true
- uses: actions/setup-node@v3
name: Setup Node
with:
node-version: 14.x
- run: npm install
- run: npm run clean
- run: npm run build:production
- run: npm run deploy:production
- name: Purge CDN Cache
env:
ZONE_ID: ${{ secrets.CF_ZONE_ID }}
BEARER_TOKEN: ${{ secrets.CF_BEARER_TOKEN }}
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/purge_cache" \
-H "Authorization: Bearer ${BEARER_TOKEN}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'