Skip to content

Release v1.19.0

Release v1.19.0 #29

Workflow file for this run

name: Publish docs.k8ssandra.io
on:
push:
tags:
- 'docs-v*.*.*'
- 'docs-v*.*.*-*'
- 'v*.*.0'
jobs:
build_and_publish:
name: Build and publish docs.k8ssandra.io
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v4
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: 20.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}'